Pan and rgb image appear in black
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have two images that appear in black. One of them is pancromatic and the other one is RGB image. How can I see them correctly in MATLAB? I add images below in .zip format.
Thank you.
0 comentarios
Respuestas (1)
Image Analyst
el 25 de Mayo de 2020
Try this:
grayImage = imread('pan.tif');
[rows, columns, numberOfColorChannels] = size(grayImage)
subplot(1, 2, 1);
imshow(grayImage, []) % Use [] to scale intensity.
impixelinfo
multiImage = imread('multi.tif');
[rows, columns, numberOfColorChannels] = size(multiImage)
[r, g, b] = imsplit(multiImage);
maxValue = max(multiImage(:))
multiImage2 = uint8(rescale(multiImage, 0, intmax('uint8')));
subplot(1, 2, 2);
imshow(multiImage2, []) % Use [] to scale intensity.
impixelinfo
Ver también
Categorías
Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!