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

回答 (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);

タグ

質問済み:

2015 年 10 月 19 日

コメント済み:

2015 年 10 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by