From: Nor Aznim on
can a binary image be converted into grayscale or RGB?what is the code?
From: ImageAnalyst on
On Apr 11, 10:21 am, "Nor Aznim" <chempaka_darw...(a)yahoo.com> wrote:
> can a binary image be converted into grayscale or RGB?what is the code?

-----------------------------------------------------------------------------------------------
Yes.

grayscaleImage = uint8(binaryImage);

rgbImage = cat(3, grayscaleImage , grayscaleImage , grayscaleImage );

Note: your image will still "look" binary - pure black and white. It
will not have any color information in it unless you want to use the
ind2rgb() function and supply a colormap.
 | 
Pages: 1
Prev: bisection method
Next: matrix in latex