Why I am getting an error like image Indexed CData must be size [MxN], TrueColor CData must be size [MxNx3]

1 vue (au cours des 30 derniers jours)
I want to convert a tiff image file that contains many images

Réponses (1)

Thorsten
Thorsten le 19 Oct 2015
Modifié(e) : Thorsten le 19 Oct 2015
Use 'Index' to address the individual images:
I1 = imread('mri.tif', 'Index', 1);
I6 = imread('mri.tif', 'Index', 6);
I11 = imread('mri.tif', 'Index', 11);
To find out the number of subimages:
x = imfinfo('mri.tif')
N = numel(x);

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by