Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - matlab s
Search - matlab s - List

% Matlab implementation of SPIHT (without Arithmatic coding stage)
%
% By Jing Tian, scuteejtian@hotmail.com

fprintf('-----------   Welcome to SPIHT Matlab Demo!   ----------------\n');

fprintf('-----------   Load Image   ----------------\n');
infilename = 'lena512.bmp';
outfilename = 'lena512_reconstruct.bmp';

Orig_I = double(imread(infilename));

rate = 1;

OrigSize = size(Orig_I, 1);
max_bits = floor(rate * OrigSize^2);
OutSize = OrigSize;
image_spiht = zeros(size(Orig_I));
[nRow, nColumn] = size(Orig_I);

fprintf('done!\n');
fprintf('-----------   Wavelet Decomposition   ----------------\n');
n = size(Orig_I,1);
n_log = log2(n);
level = n_log;
% wavelet decomposition level can be defined by users manually.
type = 'bior4.4';
[Lo_D,Hi_D,Lo_R,Hi_R] = wfilters(type);

[I_W, S] = func_DWT(Orig_I, level, Lo_D, Hi_D);

fprintf('done!\n');

fprintf('-----------   Encoding   ----------------\n');
img_enc = func_SPIHT_Enc(I_W, max_bits, nRow*nColumn, level);  

fprintf('done!\n');
fprintf('-----------   Decoding   ----------------\n');
img_dec = func_SPIHT_Dec(img_enc);

fprintf('done!\n');
fprintf('-----------   Wavelet Reconstruction   ----------------\n');
img_spiht = func_InvDWT(img_dec, S, Lo_R, Hi_R, level);

fprintf('done!\n');
fprintf('-----------   PSNR analysis   ----------------\n');

imwrite(img_spiht, gray(256), outfilename, 'bmp');

Q = 255;
MSE = sum(sum((img_spiht-Orig_I).^2))/nRow / nColumn;
fprintf('The psnr performance is %.2f dB\n', 10*log10(Q*Q/MSE));


Date : 2008-07-07 Size : 227.42kb User : jasonchang

CELP (CELl Processing) is a functional programming package for Matlab. It is often better to use FP instead of loops: - it s more compact - it s more clear.
Date : 2008-10-13 Size : 9.69kb User : 栗子

图像压缩的MATLAB算法之JEPG,完整的例程,参改价值高。-This compression is for jpeg in matlab with a whole example,and it s valuable to look at it!
Date : 2008-10-13 Size : 55.54kb User : 陈量

图像压缩的MATLAB算法之JEPG,完整的例程,参改价值高。-This compression is for jpeg in matlab with a whole example,and it s valuable to look at it!
Date : 2025-12-27 Size : 55kb User : 陈量

本程序利用奇异值分解对3通道彩色图像进行压缩分解,具体步骤如下: 压缩过程: 1. 选取子图像大小K值,把图像分解成M×M个子图像,IMG(s),s=1,2,…, M2,其中M=N/K,原始图像IMG大小为N×N。 2. 计算这M2个子图像的平均值average,对每幅子图像减去均值图像得到新图像。 3. 计算相关矩阵R,其元素定义为 。 4. 计算R的特征值与特征向量,计算每幅子图像与最大特征向量的内积,便得到编码,即压缩后的图像。 -This procedure using singular value decomposition of 3-channel color image compression decomposition, concrete steps are as follows: compression process: 1. Select the sub-image size K value, the image is decomposed into M × M sub-image, IMG (s), s = 1, 2, ..., M2, in which M = N/K, the original image IMG size N × N. 2. M2 calculate the average of sub-image average, for each sub-image minus the new images mean images. 3. Calculation of correlation matrix R, defined as its elements. 4. Calculation of the characteristics of R value and eigenvector calculated each sub-image with the largest eigenvector of the inner product, they will have to code, that is, the compressed images.
Date : 2025-12-27 Size : 327kb User : wangweiming

一张图片是之前用摄像机采集的,另一张图片是经过离散沃尔什变换再量化编码压缩后又解压所得,能看出区别吗?呵呵。flik.m是原图,newflik.m是新图。 附上所有MATLAB源程序,有兴趣的话,你也可以用这几个程序对自己的照片“加工”一番。以下6个程序分别保存为6的m文件,文件名与下面给出的一致。待“加工”图片应该存放在Matlab的Work目录下。-Before a picture is collected by the camera, another picture is the result of discrete Walsh transform and then re-quantization coding compression decompression income, you can see the difference? Ha ha. flik.m is the image, newflik.m is a new map. MATLAB source code attached to all interested, you can also use these procedures on their own photo processing of something. The following six procedures were saved as 6 m file, the file name is given with the following consensus. To be processing picture should be stored in Matlab s Work directory.
Date : 2025-12-27 Size : 1kb User : 余海风

CELP (CELl Processing) is a functional programming package for Matlab. It is often better to use FP instead of loops: - it s more compact - it s more clear.
Date : 2025-12-27 Size : 9kb User : 栗子

这个一个基于小波分析的提升算法,此算法可以快速的进行压缩-The one enhancement based on wavelet analysis algorithm, this algorithm can compress faster
Date : 2025-12-27 Size : 2kb User : luozhanyao

matlab与synplify DSP AE相结合的DDC实例,希望对大家有所帮助-matlab and synplify DSP AE combining DDC example, in the hope that U.S. help
Date : 2025-12-27 Size : 183kb User : luocaijin

交叉熵实现多元高斯混合模型优化的源代码,供大家学习使用-Realize cross-entropy optimization of multi-Gaussian mixture model of the source code for the U.S. study the use of
Date : 2025-12-27 Size : 298kb User : 黄路遥

Adams四阶预测的源码,供大家学习使用-Adams fourth-order prediction of the source for studying the use of U.S.
Date : 2025-12-27 Size : 1kb User : 黄路遥

好的水印的matlab dct,dwt代码,-something about watermark it s good for you
Date : 2025-12-27 Size : 606kb User : 秦伟

继 Discrete Cosine Transform: Algorithms, Advantages, Applications (K. R. Rao and P. Yip) 之后的一本关于离散余弦变换(DCT)的快速实现算法的最新专著. 本书第五章“Integer Discrete Cosine/Sine Transforms”关于DCT整数近似实现写的非常详细和精彩, 很方便大家编程实现. 值得一提的是本书的第一作者Vladimir Britanak 一直在从事DCT, 尤其是改进的离散余弦变换(MDCT)的快速算法的研究.-This book, which is written very carefully, is a new monograph of Discrete Cosine Transform (DCT).The fifth chapter about the Integer Discrete Cosine/Sine Transforms is especially wonderful.
Date : 2025-12-27 Size : 2.57mb User : 伍家松

If we need to verify the fact that a Polynomial has multiple roots iff (if and only if) it has a common factor with it s derivative, we need two things : a) A function to compute the GCD of 2 Polynomials. Since I could not find a Standard Matlab function for this, I created this function : Poly_GCD.m :
Date : 2025-12-27 Size : 91kb User : 邹娟

Matlab implementation of the schroeder’s reverberator algorithm for audio filtering
Date : 2025-12-27 Size : 1kb User : Nam

TSP 程序 ,有Matlab GUI界面,完常直观,很有学习价值。-TSP programs with GUI base on GA,it s worth downloading
Date : 2025-12-27 Size : 12kb User : paul

Huffman coding 的matlab实现(the matlab implementation of Huffman codng)
Date : 2025-12-27 Size : 4kb User : 依依依依1
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.