how to convert grayscale image to rgb image

1 visualización (últimos 30 días)
tawheed jan
tawheed jan el 1 de Nov. de 2013
Comentada: Image Analyst el 22 de En. de 2021
In my problem i have taken a colored image & converted it to grayscale(double).After processing now i want the colored image back.plz tell me how to do this.

Respuesta aceptada

Image Analyst
Image Analyst el 1 de Nov. de 2013
First convert to an indexed image with uint8(). Then choose a colormap, then call ind2rgb().
  2 comentarios
mohd akmal masud
mohd akmal masud el 22 de En. de 2021
hi sir, can you show the coding. let saya my coding is
B = dicomread('TRANSA001_CT025.dcm');
Image Analyst
Image Analyst el 22 de En. de 2021
% Convert RGB image to gray scale
grayImage = rgb2gray(B);
% Get color image "back":
% Nothing to do - you still have B (the original RGB image) so you're all set.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by