Borrar filtros
Borrar filtros

Convert 3 greyscale images representing RGB to RGB image

12 visualizaciones (últimos 30 días)
Claretconnor
Claretconnor el 5 de Feb. de 2022
Comentada: Claretconnor el 6 de Feb. de 2022
I have used the imread() function to read in three greyscale images , each image represents the same image but one where the illumination was red light then green light and finally blue. I would like to convert these 3 greyscale images that represent the 3 RGB channels into an RGB image but Im unsure how to do so and cannot find any documentation on this exact case. Any help would be much appreciated.

Respuesta aceptada

Rik
Rik el 5 de Feb. de 2022
Using the standard conventions:
RGB=cat(3,red(:,:,1),green(:,:,1),blue(:,:,1));
The indexing is in there in case your input images are stored as RGB.
  5 comentarios
Rik
Rik el 6 de Feb. de 2022
Then that monochrome camera stores the images as RGB. Not uncommon, but technically not correct.
Claretconnor
Claretconnor el 6 de Feb. de 2022
oh right I just assumed that they would be stored as grayscale images, my apologies.

Iniciar sesión para comentar.

Más respuestas (0)

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by