From: hari prasad on 18 Feb 2010 11:26 Hi, Iam doing a project on image compression and to use DCT on an image i need to divide the image into 8*8blocks. blkproc is the command which only functions on the blocks which are generated.Is there any other command in matlab which allows formation of blocks . Else how can we write a nested for-loop to select the blocks so that it iterates 8 times and then stops and continues from the ninth time. Thanks in advance
From: Brendan Hannigan on 19 Feb 2010 08:47 "hari prasad" <hariprasadm.89(a)gmail.com> wrote in message <hljpmt$p2l$1(a)fred.mathworks.com>... > Hi, > Iam doing a project on image compression and to use DCT on an image i need to divide the image into 8*8blocks. > blkproc is the command which only functions on the blocks which are generated.Is there any other command in matlab which allows formation of blocks . > Else how can we write a nested for-loop to select the blocks so that it iterates 8 times and then stops and continues from the ninth time. > Thanks in advance I don't understand what you are trying to do. What BLKPROC does is: 1) divide an input image into [M x N] blocks 2) run the user supplied function on each block 3) assemble all the results into a single output image and return What do you mean by "formation" of blocks? Why do you want to "iterate 8 times and then stop and continue" ? Can you explain more clearly what problem you are trying to solve?
|
Pages: 1 Prev: Low resolution in avi-files, why? Next: Photovoltaic Maximum Power Point Tracking |