Hi there, i am currently trying to turn an image i have into a very low resolution pixelated version of the image. I have found on the mathworks website a bit of code, which from the example seems to do the exact job....


(the moon pictures)

I have replaced the 'moon.tif' with my own file name and get a pixelated version of it as desired.

My problem is that the image returned is in black and white (or gray scale) while the input image is in color and my desired output image needs to be in color also.

I am brand new to matlab so I can't see the probably simple edit which to make to turn the gray scale image into a colored one.

Any Matlab buffs out there who could help me? I'd be very appreciative

Thanks Terence