Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - MATLAB Coding
Search - MATLAB Coding - 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));


Update : 2008-07-07 Size : 227.42kb Publisher : jasonchang

《MATLAB程序设计教程》一书的随书源代码-"MATLAB Programming Guide," a book of the source code along with book
Update : 2008-10-13 Size : 27.62kb Publisher : bunny

Quantizer source code matlab, there are many CDF PDF codes as well.
Update : 2011-04-20 Size : 263.69kb Publisher : netor4you@yahoo.com

Huffman 这个名字,程序员们至少会联想到二叉树和二进制编码。的确,我们总以 Huffman 编码来概括 D.A.Huffman 个人对计算机领域特别是数据压缩领域的杰出贡献。我们知道,压缩 = 模型 + 编码,作为一种压缩方法,我们必须全面考虑其模型和编码两个模块的功效;但同时,模型和编码两个模块又相互具有独立性。-Huffman, programmers will at least think of a binary tree and binary coding. Indeed, we always Huffman coding to summarize D. A. Huffman personal computer areas, especially in the field of data compression outstanding contribution. We know that the compression encoding = model, as a compression method, we must take full account of two model and coding module effectiveness; But at the same time, model and coding module of two mutual independence.
Update : 2025-02-19 Size : 2kb Publisher : 亞男

图形图像处理中小波压缩编码的码头喇叭实现,非常简单,只是调用系统函数-graphics processing wavelet compression coding to achieve the terminal loudspeaker, very simple, just call functions
Update : 2025-02-19 Size : 3kb Publisher : liu

使用matlab实现ami编码,通信原理实验之一,步骤有解释说明-achieve ami use Matlab coding, communication principle experiment, step-by-step explanation
Update : 2025-02-19 Size : 1kb Publisher : 刘云

图像压缩的几个MATLAB算法:分块编码、高斯金字塔、离散余弦变换、单值分解。-Image Compression Algorithm several MATLAB : Block Coding, Gaussian pyramid, discrete cosine transform, singular value decomposition.
Update : 2025-02-19 Size : 10kb Publisher : 陈量

《MATLAB程序设计教程》一书的随书源代码-"MATLAB Programming Guide," a book of the source code along with book
Update : 2025-02-19 Size : 27kb Publisher : bunny

图像中数字水印matlab编码,水印的嵌入提取及嵌入强度-Digital watermark image matlab coding, the embedded watermark extraction and embedding strength
Update : 2025-02-19 Size : 62kb Publisher : xwtiancai

DL : 0
香农编码,为已知的序列概率,用香农编码进行编码.-Shannon coding sequence for the known probability of encoding used to encode the Shannon.
Update : 2025-02-19 Size : 69kb Publisher : mao

matlab编程是中文版吗?中文版,好东西-material about matlab coding.......................
Update : 2025-02-19 Size : 2.33mb Publisher : 幸福在一起

i need the matlab coding for pid controller using particle swarm optimization
Update : 2025-02-19 Size : 42kb Publisher : anandh

it is matlab code for image histogram modification used to collect the same property of image.
Update : 2025-02-19 Size : 2kb Publisher : anbu

自述的matlab编程小技巧,供代码编写者参考-matlab coding skills
Update : 2025-02-19 Size : 3kb Publisher : chen

the attached file have some matlab coding for wavelet based image processing applications
Update : 2025-02-19 Size : 2kb Publisher : sujatha

MATLAB编码实现m进制星座图,星座图的绘制方法-MATLAB coding m hex constellation, constellation mapping method
Update : 2025-02-19 Size : 1kb Publisher : 王振

Matlab Code for Histogram Equalization
Update : 2025-02-19 Size : 2kb Publisher : Baski

matlab coding for pde equation
Update : 2025-02-19 Size : 2.34mb Publisher : hmdrza

matlab绘图模板汇总,可用于绘制各类实用图表(good practical exemples of plotting common graphies using matlab coding)
Update : 2025-02-19 Size : 365kb Publisher : tonyslater1989

此代码是用matlab软件仿真PAM4信号的传输,自动生成传输数据,在接收端做基本的信号处理,计算出误码率。(This code uses MATLAB software to simulate the transmission of pam4 signal, automatically generate the transmission data, do basic signal processing at the receiving end, and calculate the bit error rate.)
Update : 2025-02-19 Size : 6.88mb Publisher : wijdoy
« 12 3 4 5 6 7 8 9 10 ... 50 »
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.