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....

http://www.mathworks.com/help/toolbox/images/f7-12726.html#brcu20d-1

(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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.