Multibandread function makes my uint8 image tingly
Show older comments
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?
Accepted Answer
More Answers (1)
Image Analyst
on 15 Apr 2023
Edited: Image Analyst
on 15 Apr 2023
0 votes
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).
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!