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

조회 수: 3 (최근 30일)
I want to convert a tiff image file that contains many images

답변 (1개)

Thorsten
Thorsten 2015년 10월 19일
편집: Thorsten 2015년 10월 19일
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);

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by