-
大小: 118KB文件类型: .rar金币: 2下载: 1 次发布日期: 2021-10-13
- 语言: 其他
- 标签:
资源简介
小波理论没有学习好,照样可以用好小波.
有harr小波的入门级代码,1D,2D,3D等等
代码片段和文件信息
/******
todos :
. lots of <> marks scattered around in the many modules
. at “stop“ functionality to ZT coders by including a “stop_subband“
and setting the ZT “bottom“ flag in that subband.
This would be something like the !propZTs of golfz
. lifting transform
. quantizers.c is poorly estimating distortion & entropy
chooseQuantizers needs lots of work
(stopAtQuantizer makes this a low-priority problem)
. DCT works great with uniform quantizers but wavelets (especially the S+P)
are killed by large quantization of the top LL band
. my old adaptive quantizers idea
. the ultimate goal is for the encoders to have tune-able parameters
that are optimized *per band* (such as context sizes). The
sever form of this is to actually choose different coders for
different bands but that is more tricky because it is critical
that coders are given passes to adapt; (this could be done by
manually conditioning the new coder each time there‘s a change
but that would be slow for the decoder)
*********/
//#define LL_WAVE_CNTX
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define readImageFile readImageFileBytes
#define writeImageFile writeImageFileBytes
#define dataBytes 1
/** some globals set by the mainline for reference by the coders ;
/*** the various coder templates available : ***/
extern int tune_param;
const static int default_lossless_coder = 11; // an order-1
int main(int argcchar *argv[])
{
image *im=NULL*save=NULL*im_work=NULL; // allocs
wavelet *wavelet = NULL;
char *sourceName;
int iqtypeqflags;
int complenstop_comp_len;
int widthheightplanesll_widthll_height;
int levelscoderNlosslessNtransformN;
double quantizerstop_comp_rate;
bool writeWavewriteDecdoLosslesswriteDeltasdoQuantdoYUVinterleaveddo_pauseoldSchoolwavePacket;
int autotune_minautotune_maxautotune_step;
const coder * coder_template;
double forw_timeenc_timedec_timeinv_time;
errputs(“WaveCoder v1.7 (c) 1998 by cBloom“);
if ( argc < 4 ) {
errputs(“wavecoder : tree-structured transforms and coders“);
errputs(“usage: wt
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 15156 1998-09-16 10:40 wavelet transform code\main.c
文件 5014 1998-09-15 10:58 wavelet transform code\wtlib\b97.c
文件 203 1998-08-03 17:02 wavelet transform code\wtlib\b97.h
文件 4601 1998-09-15 10:58 wavelet transform code\wtlib\bcw3.c
文件 196 1998-08-04 11:41 wavelet transform code\wtlib\bcw3.h
文件 4106 1998-09-15 10:58 wavelet transform code\wtlib\cdf22.c
文件 199 1998-08-05 12:36 wavelet transform code\wtlib\cdf22.h
文件 2992 1998-09-15 10:58 wavelet transform code\wtlib\cdf24.c
文件 129 1998-08-04 11:41 wavelet transform code\wtlib\cdf24.h
文件 13099 1998-09-15 10:59 wavelet transform code\wtlib\codeimage.c
文件 1728 1998-07-31 17:18 wavelet transform code\wtlib\codeimage.h
文件 9938 1998-09-15 10:59 wavelet transform code\wtlib\coder.c
文件 4063 1998-09-15 10:59 wavelet transform code\wtlib\coder.h
文件 5578 1998-09-15 10:58 wavelet transform code\wtlib\coder_bitplane.c
文件 4402 1998-09-15 10:59 wavelet transform code\wtlib\coder_bp.c
文件 15487 1998-09-15 10:58 wavelet transform code\wtlib\coder_bpb.c
文件 8886 1998-09-15 10:58 wavelet transform code\wtlib\coder_bpb2.c
文件 5233 1998-09-15 10:59 wavelet transform code\wtlib\coder_bpbf.c
文件 6856 1998-09-15 10:58 wavelet transform code\wtlib\coder_bpbf_zt.c
文件 6101 1998-09-15 10:58 wavelet transform code\wtlib\coder_bp_sorted.c
文件 12232 1998-09-15 10:59 wavelet transform code\wtlib\coder_bp_zt.c
文件 14647 1998-09-15 10:58 wavelet transform code\wtlib\coder_bp_zt2.c
文件 12503 1998-09-15 10:59 wavelet transform code\wtlib\coder_frac.c
文件 1797 1998-09-15 10:59 wavelet transform code\wtlib\coder_none.c
文件 8034 1998-09-15 10:58 wavelet transform code\wtlib\coder_nop.c
文件 2362 1998-09-15 10:59 wavelet transform code\wtlib\coder_o0.c
文件 3746 1998-09-15 10:59 wavelet transform code\wtlib\coder_o1.c
文件 5771 1998-09-15 10:59 wavelet transform code\wtlib\coder_o1p1.c
文件 6680 1998-09-15 10:59 wavelet transform code\wtlib\codeR_o1_sb.c
文件 7143 1998-09-15 10:59 wavelet transform code\wtlib\coder_o2.c
............此处省略53个文件信息
- 上一篇:课程设计音像租赁商店管理系统需求分析报告
- 下一篇:学籍管理系统建模uml
评论
共有 条评论