In matlab, when I use
imshow('trees.tif')
it displays an RGB image, but when I use these two functions
I=imread('trees.tif') imshow(I)
it displays a grayscale image and it is still the same image.
This only happens with TIFF images, because when I use it for a JPEG image as follows:
I=imread('flower.jpg') imshow(I)
it displays an RGB image and it is the same as imshow('flower.jpg') .
Can someone explain why using imread / imshow on TIFF images displays them in grayscale?
source share