karthik:
I'm not sure what the difference is. If you have colors, then the
image array is a 3D array where the pixel is a triplet of values for
red, green, and blue, or else it's an indexed image where you've
applied a colormap to assign a color to a single gray value. Either
way, they're numbers. Now, what is the bottom half of the image? You
say they're numbers but like I said, the top half is numbers too.
Lacking a good explanation, all I can say is have a look at rgb2ind(),
ind2rgb(), colormap(), and my color classification demos in my File
Exchange (
http://www.mathworks.com/matlabcentral/fileexchange/?
term=authorid%3A31862), or this wikipedia page on color quantization:
http://en.wikipedia.org/wiki/Color_quantization