How to use montage for RGB images

2 visualizaciones (últimos 30 días)
RuiQi
RuiQi el 21 de Jun. de 2016
Editada: Viktória Nemkin el 5 de Abr. de 2018
Hi,
How can i show a montage of my rgb images ? Right now its treating the rgb channels as if they were separate grayscale images.

Respuestas (1)

Viktória Nemkin
Viktória Nemkin el 5 de Abr. de 2018
Editada: Viktória Nemkin el 5 de Abr. de 2018
Hello,
I had the same problem and this was the first Google search result, so for anyone who finds this:
Instead of doing this:
allImages(:,:,:,1) = image;
montage(allImages, 'Size', [3, 3]);
Which will display a 3x3 matrix with the first row displaying the red, green and blue channels separately, do this:
allImages{1,1} = image;
montage(allImages, 'Size', [3, 3]);
Which will display the image in the top left corner in RGB.

Categorías

Más información sobre Image Processing and Computer Vision en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by