Prev: bisection method
Next: matrix in latex
From: Nor Aznim on 11 Apr 2010 10:21 can a binary image be converted into grayscale or RGB?what is the code?
From: ImageAnalyst on 11 Apr 2010 10:32 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 |