Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - Db matlab
Search - Db matlab - 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

MATLAB implementation of SPIHT (without Arithmatic coding stage). % Performance evaluation : this toolbox VS. SPIHT % Test image: lena512.raw % bpp SPIHT(dB) This code(dB) % 0.1000 29.8107 29.3202 % 0.2000 32.7202 32.2514 % 0.3000 34.5479 34.0331 % 0.4000 35.8422 35.4857 % 0.5000 36.8623 36.5939 % 0.6000 37.6650 37.3759 % 0.7000 38.2581 38.0491 % 0.8000 38.9390 38.7058 % 0.9000 39.5218 39.3437 -MATLAB implementation of SPIHT (without A rithmatic coding stage). Performance evalua% tion : this toolbox VS. SPIHT%% Test image : lena512.raw%% bpp SPIHT (dB) This code (dB)% 0. 1000 29.8107 32.7202 0.2000 29.3202% 32.2514% 0.3000 0.4000 34.5479 34.0331% 35.8422 35.485 7% 0.5000 0.6000 36.8623 36.5939% 37.6650 37.3 759% 38.0491% 0.7000 0.8000 38.2581 38.9390 38 .7058 0.9000 39.5218 39.3437%
Date : 2008-10-13 Size : 178.09kb User : jason..

MATLAB implementation of SPIHT (without Arithmatic coding stage). % Performance evaluation : this toolbox VS. SPIHT % Test image: lena512.raw % bpp SPIHT(dB) This code(dB) % 0.1000 29.8107 29.3202 % 0.2000 32.7202 32.2514 % 0.3000 34.5479 34.0331 % 0.4000 35.8422 35.4857 % 0.5000 36.8623 36.5939 % 0.6000 37.6650 37.3759 % 0.7000 38.2581 38.0491 % 0.8000 38.9390 38.7058 % 0.9000 39.5218 39.3437 -MATLAB implementation of SPIHT (without A rithmatic coding stage). Performance evalua% tion : this toolbox VS. SPIHT%% Test image : lena512.raw%% bpp SPIHT (dB) This code (dB)% 0. 1000 29.8107 32.7202 0.2000 29.3202% 32.2514% 0.3000 0.4000 34.5479 34.0331% 35.8422 35.485 7% 0.5000 0.6000 36.8623 36.5939% 37.6650 37.3 759% 38.0491% 0.7000 0.8000 38.2581 38.9390 38 .7058 0.9000 39.5218 39.3437%
Date : 2026-01-02 Size : 178kb User : jason..

MIT-DB标准数据库中心电信号的读取程序可用于心电信号压缩与编码-MIT-DB standard ECG database, the reading program can be used for ECG signal compression and coding
Date : 2026-01-02 Size : 679kb User : liuyongwang
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.