Code covered by the BSD License  

Highlights from
SPIHT

4.66667

4.7 | 31 ratings Rate this file 91 Downloads (last 30 days) File Size: 228.71 KB File ID: #4808

SPIHT

by Kanchi

 

26 Apr 2004 (Updated 07 Sep 2011)

SPIHT matlab code (without Arithmatic coding stage)

| Watch this File

File Information
Description

MATLAB implementation of SPIHT (without Arithmatic coding stage)

Acknowledgements
This submission has inspired the following:
3D-SPIHT
Required Products Image Processing Toolbox
Wavelet Toolbox
MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (38)
02 May 2004 zxda asdas

need yo

10 May 2004 hu wei

good

13 May 2004 Matthew Teow

Well done

03 Jun 2004 jin yuan

i wanna somebody could tell me where to get adaptive binary arithmetic coding code,and thanx very much.

13 Oct 2004 quer zhu

nice

25 Oct 2004 Raghad Al_Assadi

please,how can i do if wavelet packet transform?
send me any answer at my e-mail.

01 Feb 2005 Dini Franc

good

08 May 2005 swf 000117

some updata in http://guohanwei.51.net/ask/SPIHT-0.1.rar
and
http://9bc.com/showpost.php?board=106072&bdct=114936&id=2093965&page=1

thanks for scuteejtian@hotmail.com

17 May 2005 Solomon Johnsen

please send me a matlab code for haar transform based image compression w/c display compression ratio

03 Aug 2005 Nissim Nabar  
30 Aug 2005 avinash bp

can u plz send me the c or c++ code for speck algorithm...thnk you...
my alternate email id is bpavinash77@yahoo.com

04 Nov 2005 woshidada woshidada

thank you !It's my need;

24 Dec 2005 raj kumar

very good

24 Dec 2005 raj kumar

excellent help you are providing to the people

25 Dec 2005 srinivasarao ronanki

Its nice to interact as well as helping for all,those who are having problems in coding

16 Jan 2006 Soman KP

Excellent tool for researchers and students to play with and understand the concepts

24 Jan 2006 Sundaram RMD

Its an excellent package. I had some problems in implementing the idea, which got cleared after going through. Hats off to the programmer.

31 Jan 2006 Omar Sharif

Excellent....pray for me as i can be like u....

04 Apr 2006 Sidharth Modi

Best code see on this Site

06 May 2006 Gabriel Peyré

Amazing toolbox!
Great implementation, great results. The different parts of the process are nicely splited.

09 May 2006 M Khan

I used the SPIHT coding from your program. It nice. Thank you.

But func_SPIHT_Main.m gives some problems there is call to sum2 but i could not find any method sum2 func_SPIHT_Main.m gives error message. I replace sum2 with sum but it gives some other error.s

09 May 2006 rings kanchi

To all: sum2 means the 2-D summation. That is, sum2(X) = sum(sum(X)) for the input 2-D matrix X.

25 Jul 2006 Humberto Ochoa

Very good, thank you for this program

07 Jan 2007 NAVEEN RATHEE

I am using SPIHT algorithm for imge compression. in C language as specified in the AMIR SAEED IEEE PAPER. i want to go for programming in the MATLAB i am finding problem in C during LINKING and also in MATLAB EXECUTION PLEASE HELP ME OUT.

29 Apr 2007 Grigorios Tsagkatakis

Good work

25 Jan 2008 nithin nagaraj

Very well written code and very useful. Thanks much.

16 Mar 2008 prasad prasad  
05 Apr 2008 Nidhi Kulkarni

the code is excellent but i want to access the compressed file and want to know the size of that compressed file in KB/MB as well as in pixels....
can u guide me please...
thanx a lot !!

17 Apr 2008 hbbpapn omo

thanks

04 May 2008 Yi ZOU

Your code is very helpful for me. But i found that your root nodes are not in the LL. Am i right? Thank you again.

30 Jun 2008 shital khalane

Your code is very helpful for me.but i want explanation for each & every line so that i can understand coding. can u help me?

02 Jul 2008 OLIVIERO oli

good morning
i want to convert a signal with .dat extention to binary signal .bin
because i want to compression ECG
i can't undestand the code gived..please help
thanx a lot

14 Mar 2009 falgun thakkar

given code is very good, but i want arithmatic code for image compression

17 Dec 2009 xiao –

this program has som errors in its psnr,if you want provided with the right one ,plesae contact with me .xhclsl@163.com

05 Jan 2011 Jewel

I got problem on PSNR when compressing dicom image 512x512x3 using this coding. Is it because it is rgb/truecolor image? Do I need to convert it to indexed image?

06 Aug 2011 Universidad granada

Hello everyone, I have a problem with the SPIHT algorithm, when the images are different from 512x512, someone could help me. thank you very much. My email is zergioperes@gmail.com If you find the solution, thank you very much

07 Oct 2011 Jan Stolarek

Very nice code, although it could use some refactoring, e.g. this part in the main demo file:

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

Could be simple rewritten as:

[nRow, nColumn] = size(Orig_I);
max_bits = floor(rate * nRow^2);
level = log2(nRow);

OutSize and image_spiht are never used in fact. Last line assumes silently that dimensions of the image are power of 2 and that there are at least as many columns as rows. Perhaps this would be better:
level = floor( log2( min( [ nRow, nColumn ] ) ) );

Matlab code analyzer complains a lot about variables growing inside the loops. I think that optimizing that could improve performance a lot.

13 Oct 2011 mangesh L

give me matlab code for B2 coding

Please login to add a comment or rating.
Updates
30 Apr 2004

please change this code to "image processing" section. Thank you.

20 Mar 2008

The program has been revised to support BMP file.

15 Feb 2011

update few help lines.

07 Sep 2011

Correcting few typos.

Tag Activity for this File
Tag Applied By Date/Time
compression Kanchi 22 Oct 2008 07:18:26
spiht wavelet image coding Kanchi 22 Oct 2008 07:18:26
compression Ashwin Thobbi 18 Mar 2009 06:05:04
compression prahlaja project 26 Sep 2011 05:39:45
spiht wavelet image coding prahlaja project 26 Sep 2011 05:41:35
spiht wavelet image coding Sandra 30 Jan 2012 22:57:15
compression Raj Sahani 07 Feb 2012 01:53:48
spiht wavelet image coding Raj Sahani 07 Feb 2012 01:53:48

Contact us at files@mathworks.com