dividing RGB image into overlaping blocks

4 Ansichten (letzte 30 Tage)
nkumar
nkumar am 2 Mär. 2013
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 Kommentar
Image Analyst
Image Analyst am 2 Mär. 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)?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 5 Mär. 2013
Change your
@(block_struct)kmeans(block_struct.data,4)
to
@(block_struct)kmeans(double(block_struct.data),4)

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 2 Mär. 2013
blockproc() with BorderSize option, and with TrimBorder 0
  9 Kommentare
Image Analyst
Image Analyst am 2 Mär. 2013
See how they use kmeans here kmeans demo and how they have to reshape the output of kmeans.
nkumar
nkumar am 5 Mär. 2013
for each block i have to find k means ans then have t perform some other operations also,finally have o set a colour for each block depepnding upon other previous values

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by