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

输入:为需要压缩图象的名称,该主程序仅能构处理256灰度图,读者可以自行改编为RGB处理;ratio为压缩比率;level为小波分解的级数 输出:是解压完毕的图象数据矩阵-input : the need for image compression name, the main program can only handle 256 gray level structure, Readers can own adaptation of RGB; ratio of compression ratio; wavelet decomposition level for the series output : is finished unpacking the image data matrix
Date : 2025-12-21 Size : 53kb User : 林颖

此为基于二代提升小波的阈值压缩算法源码,其中可以设置小波变换的分解层数,使用的小波名称,及各层阈值设置计算公式中的参数。并将低频系数转化为十六进制,方便在其上进一步压缩,如采用Huffman压缩等,程序思路清楚,附有完整的注释,可以使用多种小波,并且很好得体现了二代小波的思想,对于初学小波者帮助很大。-based on the second generation of this upgrade wavelet compression algorithm threshold source, which can set wavelet transform decomposition level, the use of wavelet name, threshold levels and set the formula for calculating the parameters. And low-frequency coefficients into hexadecimal facilitate its further compression, such as the Huffman compression. procedures ideas clearly, with the integrity of the Notes, you can use a variety of wavelet, and reflected very well in the second generation wavelet thinking, For beginners who wavelet of great help.
Date : 2025-12-21 Size : 12kb User : 孙金凤

EZW,如多级树集合分裂算法(SPIHT),集合分裂嵌入块编码(SPECK),可逆的嵌入小波压缩法(CREW)等.本文对这些算法从原理到性能进行了比较和讨论,说明了嵌入式图象编码的研究方-EZW, such as multi-level collection of split tree algorithm (SPIHT), set to split the embedded block coding (SPECK), reversible embedded wavelet compression method (CREW) and so on. In this paper, these algorithms from the principle to the performance are compared and discussed to illustrate the embedded Study type image coding side
Date : 2025-12-21 Size : 72kb User : 华生

SPIHT(多级树集合分裂算法)对图像压缩有很大的推进作用,此为原始代码,进行过仿真,程序结构清晰.-SPIHT (set of multi-level tree splitting algorithm) on the image compression to promote the role of a great, this is the original code, and carried out simulations, program structure clear.
Date : 2025-12-21 Size : 188kb User : 徐萍

SPIHT多级树集合分裂算法的基础知识,讲解详细,适合于入门者理解算法的基本思想。-SPIHT multi-level tree splitting algorithm is a collection of basic knowledge, to explain in detail, suitable for beginners to understand the basic idea of the algorithm.
Date : 2025-12-21 Size : 1.06mb User : yangshu

chebshev窗函数,包括等旁瓣级,任意主瓣宽度两个程序-chebshev window function,including side-lobe level and main-lobe width
Date : 2025-12-21 Size : 1kb User : tang

Implementation of JPEG compression algorithm with JFIF header being appended.This project involves writting code for following steps : Chroma subsampling,partitioning ,level shifting,DCT,quantization,zigzag scanning(involves DC differential coding & AC huffman coding) & adding jfif header following the rules specified in itu-t.81.
Date : 2025-12-21 Size : 944kb User : dwn

Tic-Tac-ToeThis a very user friendly tic-tac-toe game with three different difficulty levels. Download the zip file tictactoe.zip then extract the contents in to a folder and in MATLAB run tictactoe.m by typing tictactoe at the command line. You can play against a friend or the computer. The difficulty level can be adjusted in the file menu. The expert level promises to give even the best player a challenge!-This is a very user friendly tic-tac-toe game with three different difficulty levels. Download the zip file tictactoe.zip then extract the contents in to a folder and in MATLAB run tictactoe.m by typing tictactoe at the command line. You can play against a friend or the computer. The difficulty level can be adjusted in the file menu. The expert level promises to give even the best player a challenge!
Date : 2025-12-21 Size : 46kb User : 吃饭饭

Huffman encoding and decoding using matlab. Very complete as a education level.
Date : 2025-12-21 Size : 4kb User : Sam

Texture-Aware Fast Global Level Set Evolution-Due to its intrinsic advantages such as the ability to automatically handle complex shapes and topological changes, the level set method has been widely used in image segmentation. Nevertheless, in addition to be computational expensive, it has the limitation to very often lead to a local minimum because of the energy functional to be minimized is non-convex. In this work, we use the geometric active contours and the image thresholding frameworks to design a novel method for global image segmentation. The local lattice Boltzmann method is used to solve the level set equation. The proposed algorithm is therefore effective and highly parallelizable. Experimental results on satellite, natural and medical images demonstrate the effectiveness and the efficiency of the proposed method when implemented using an NVIDIA graphics processing units The present Matlab code is the implementation of our work. For using: 1- Open the main code (TAFGLSE.m), 2- Put the adress of the image you w
Date : 2025-12-21 Size : 517kb User : 许雄文
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.