MATLAB: Setting the colors for blocks

coloring of blocks

i've a grayscale image and i've divided into non-overlapping blocks.
i want to color/mark the blocks having same mean value.
can anyone tell me how to do so.. as i m novice to matlab…
if required tell me as soon as possible i can provide you my code.

Best Answer

Take the matrix of mean values, and imagesc() it.