comment lire et afficher une image 4 dimensions ?

1 次查看(过去 30 天)
Error using imageDisplayValidateParams>validateCData (line 117)
Unsupported dimension.
Error in imageDisplayValidateParams (line 31)
common_args.CData = validateCData(common_args.CData,image_type);
Error in imageDisplayParseInputs (line 79)
common_args = imageDisplayValidateParams(common_args);
j'ai utilisé imshow mais j'ai trouvé cet erreur
Error in imshow (line 220)
[common_args,specific_args] = ...
Error in Test (line 6)
imshow(I1);
svp m'aidez à trouver la solution pour avoir le lire et l'afficher et comment chaque plan a part et merci

回答(1 个)

Walter Roberson
Walter Roberson 2017-5-23
Pour RGBA,
image(I1(:,:,1:3), 'alphadata', I1(:,:,4)); %NB, image(), pas imshow()
inprof = iccread('USSheetfedCoated.icc');
outprof = iccread('sRGB.icm');
C = makecform('icc', inprof,outprof);
I1_rgb = applycform(I1, C);
image(I1_rgb); %ou imshow(I1_rgb)
Pour hyperspectral,
montage( permute(I1, [1 2 4 3]) )
colormap(gray(256))

Community Treasure Hunt

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

Start Hunting!

Translated by