rgbquadtree

所属分类:图形图像处理
开发工具:matlab
文件大小:124KB
下载次数:168
上传日期:2009-11-19 10:30:47
上 传 者guassfans
说明:  四叉树分解算法对RGB彩色图像进行分割,MATLAB代码,包括实验图片
(Quad-tree decomposition algorithm RGB color image segmentation, MATLAB code, including test images)

文件列表:
rgbquadtree\avgofmatblks.m (865, 2009-07-09)
rgbquadtree\converttoclass.m (1083, 2009-07-09)
rgbquadtree\delsparsekeybyxANDy.m (862, 2007-08-10)
rgbquadtree\drawquadblocks.m (565, 2009-07-09)
rgbquadtree\fillrect_ulwh.m (1132, 2009-07-09)
rgbquadtree\ispowerof2.m (677, 2009-07-09)
rgbquadtree\license.txt (1337, 2009-07-18)
rgbquadtree\main.m (1009, 2009-07-09)
rgbquadtree\padrgbtomakepowof2.m (853, 2009-07-09)
rgbquadtree\padtomakepowof2.m (1250, 2009-07-09)
rgbquadtree\qt3ddecom.m (6722, 2009-07-09)
rgbquadtree\qtreedecode.m (1528, 2009-07-09)
rgbquadtree\qtreergbdecode.m (712, 2009-07-09)
rgbquadtree\qtrgbsplit.m (2859, 2009-07-09)
rgbquadtree\rafting.png (115041, 2005-09-03)
rgbquadtree\splitinto4.m (637, 2009-07-09)
rgbquadtree\trimsparse.m (159, 2007-08-10)
rgbquadtree (0, 2009-11-18)

main ---- Test program for Quadtree decomposition (Encoding) and Decoding of RGB image qt3ddecom ---------- Quadtree decomposition method for RGB image of size M-by-N-by-3. This method uses three thresholds for red,green and blue blocks. 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 image is splitted into 4 blocks. Thresholds are specified as a value between 0 and 1, even if I is of class uint8 or uint16. If I is uint8, the threshold value you supply is multiplied by 255 to determine the actual threshold to use; if I is uint16, the threshold value you supply is multiplied by 65535. The function also pad the image if its size is not power of 2, so that image can be divided until block of size 1. Input image I (true color) image matrix of size M-by-N-by-3. thvec: threshold values of rgb b/w 0 and 1 e.g. thvec=[0.5,0.5,0.5] (this is optional argument, defualt threshold is thvec=[0 0 0] i.e. lossless encoding Output S: the quadtree structure in the sparse matrix S. If S(k,m) is nonzero, then (k,m) is the upper left corner (ULC) of a block in the decomposition, and the size of the block is given by S(k,m). valRGB(n,1:3): mean (average) of RGB compoents for nth block Exmaples of usage: [S,valRGB]=qt3ddecom(I,thvec); or [S,valRGB]=qt3ddecom(I); %lossless encoding qtreergbdecode -------------- Method to decode Quadtree date that is decomposed (encoded) by qt3ddecom method Input S: the quadtree structure in the sparse matrix S. If S(k,m) is nonzero, then (k,m) is the upper left corner (ULC) of a block in the decomposition, and the size of the block is given by S(k,m). valRGB(n,1:3): mean (average) of RGB compoents for nth block Output I: Decoded Image % % % -------------------------------- % % % Author: Dr. Murtaza Khan % % % Email : drkhanmurtaza@gmail.com % % % --------------------------------

近期下载者

相关文件


收藏者