dividing RGB image into overlaping blocks
Show older comments
I have a RGB image,please can anyone tell how to divide the image into OVERLAPPING BLOCKS OF SIZE 64 64.then i want to perform some operation on each block
Kindly assist
1 Comment
Image Analyst
on 2 Mar 2013
What overlaps? Does each block overlap other blocks, or do the blocks just overlap the original image with no block-to-block overlap (in essence the blocks perfectly tile the image like you were laying tiles on a floor)?
Accepted Answer
More Answers (1)
Walter Roberson
on 2 Mar 2013
0 votes
blockproc() with BorderSize option, and with TrimBorder 0
9 Comments
Algorithms Analyst
on 2 Mar 2013
Please follow this code
fun=@(block_struct) block_struct.data;
rgbBlock=BLOCKPROC(rgbimage,[64 64],fun,'BorderSize',[3 3],'TrimBorder',false);%Image Segmentation
nkumar
on 2 Mar 2013
Walter Roberson
on 2 Mar 2013
blockproc, not blkproc !
fun = @FunctionaName; should be changed so that FunctionName is the name of the function you want to be called on each block.
nkumar
on 2 Mar 2013
Walter Roberson
on 2 Mar 2013
Set TrimBorder to false like Algorithms Analyst showed.
Saying "I get error" is not very informative.
nkumar
on 2 Mar 2013
Algorithms Analyst
on 2 Mar 2013
why you applying clustering algorithm on each block?can you please clear this point?actually what are you trying to do?please clearify your target.....as you told that you want to divid image by 64x64 and overlapped and now you appplied kmeans...clear it
Image Analyst
on 2 Mar 2013
nkumar
on 5 Mar 2013
Categories
Find more on Blocked Images in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!