Search code examples
matlabvideotiffmatlab-cvst

how can a .tiff file be input to Matlab vision.VideoFileReader?


I have a .tiff video file and want to input it into my Matlab script. But vision.VideoFileReader supports only .mpeg .mp2 .mpg .m4v but NOT .tiff.

Does Matlab have a function that converts .tiff to a format readable by vision.VideoFileReader?


Solution

  • You can just use imread.

    img = imread('image.tif', i);
    

    will read the i-th image from a multi-image TIFF file.