Multibandread function makes my uint8 image tingly
Mostrar comentarios más antiguos
I have a uint8 multiband tif image. I'm using the 'multibandread' function in my code. But when I try display the image it becomes a tingly image. Here is the script I use to display my image:
image = multibandread('l7_ms.tif',[512, 512, 7],'uint8=>uint8',...
128,'bil','ieee-le',{'Band','Direct',[4 3 2]}); % Convert the multiband image to 3 band image
figure; imshow(image); title('CIR Composite'); % Display image
Here is my display output:

is there something wrong with my code? If so how do I fix it?
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 15 de Abr. de 2023
Editada: Image Analyst
el 15 de Abr. de 2023
0 votos
Possibly some of your parameters are wrong. But you forgot to attach your image so no one can check.
Since the image is a multi-page TIFF format, I suggest you use the imread to read in the different pages (band images).
Categorías
Más información sobre Convert Image Type en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
