4.33333

4.3 | 6 ratings Rate this file 195 downloads (last 30 days) File Size: 125.44 KB File ID: #9485

Quadtree decomposition (Encoding) and Decoding of RGB Image

by Dr. Murtaza Khan

 

02 Jan 2006 (Updated 18 Jul 2009)

Code covered by BSD License  

Quadtree decomposition (Encoding) and Decoding of RGB Image of size M-by-N-by-3 (No toolbox required

Download Now | Watch this File

File Information
Description

Quadtree decomposition of RGB image of size M-by-N-by-3. Three thresholds for red,green and blue components are used. For any R or G or B block if the maximum value of the block elements minus the minimum value of the block elements is greater than its respective threshold then the RGB block is split into 4 blocks. For lossy encoding (individual) mean value R,G,B are assign to RGB block. Image is padded if its size is not power of 2, so that image can be divided until block of size 1.
 
Thresholds are specified as a value between 0 and 1 (0 for lossless encoding). If Image is of type uint8 then threshold value is multiplied by 255, if Image is of type uint16 then threshold value is multiplied by 65535, to determine the actual threshold.

main.m
---------
Test program for Quadtree decomposition (Encoding) and Decoding of RGB image

(No toolbox required)

MATLAB release MATLAB 6.5 (R13)
Zip File Content  
Other Files
license.txt,
rgbquadtree/avgofmatblks.m,
rgbquadtree/converttoclass.m,
rgbquadtree/delsparsekeybyxANDy.m,
rgbquadtree/drawquadblocks.m,
rgbquadtree/fillrect_ulwh.m,
rgbquadtree/ispowerof2.m,
rgbquadtree/main.m,
rgbquadtree/padrgbtomakepowof2.m,
rgbquadtree/padtomakepowof2.m,
rgbquadtree/qt3ddecom.m,
rgbquadtree/qtreedecode.m,
rgbquadtree/qtreergbdecode.m,
rgbquadtree/qtrgbsplit.m,
rgbquadtree/rafting.png,
rgbquadtree/readme_rgbquadtree.txt,
rgbquadtree/splitinto4.m,
rgbquadtree/trimsparse.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (13)
03 Jan 2006 Eugene Konoplin  
04 Jan 2006 J. Tai

Neat, works very well.

26 Feb 2007 vidya krishnamurthi

its very useful to me thank u

02 Jul 2007 Taner Ince  
22 Sep 2007 selma salem

can I have a mfile qt3ddecomp to better understand a method.

24 Oct 2008 Saksono Setiardi

may i have the mfile from qt3ddecomp.p please...???

24 Nov 2008 Basheer

great work
would you send me the mfile from qt3ddecomp.p please...???

02 Apr 2009 yxlvvv i

great work
would you send me the mfile from qt3ddecomp.p please...,my e_mail:yxlvvv@qq.com thank you

15 Apr 2009 Pierrick Gérenton

good work !!!
would you please send me the qt3ddecomp mfile ?
thank you

24 Apr 2009 Robin

Really good work !!!
would you please send me the qt3ddecomp m-file ?
thank you so much
Robin

30 May 2009 hbu 

excellent

18 Jul 2009 Dr. Murtaza Khan

I updated the new version on 18-July, which includes two missing files delsparsekeybyxANDy.m and trimsparse.m. Please wait few days so that Matlab can approve and upload the new version in few days.

thanks
Author

20 Jul 2009 Dr. Murtaza Khan

New version has been uploaded. Fee free to use and comment on this program.

Thanks
Author

Please login to add a comment or rating.
Updates
05 Jan 2006

punctuaton correction and better description. No change in files.

03 May 2006

updated

09 Jul 2009

BSD License

18 Jul 2009

Missing files are included

Tag Activity for this File
Tag Applied By Date/Time
image analysis Dr. Murtaza Khan 22 Oct 2008 08:11:05
quadtree Dr. Murtaza Khan 22 Oct 2008 08:11:05
image Dr. Murtaza Khan 22 Oct 2008 08:11:05
true color Dr. Murtaza Khan 22 Oct 2008 08:11:05
rgb Dr. Murtaza Khan 22 Oct 2008 08:11:05
encoding Dr. Murtaza Khan 22 Oct 2008 08:11:05
decoding Dr. Murtaza Khan 22 Oct 2008 08:11:05
compression Dr. Murtaza Khan 22 Oct 2008 08:11:05
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com