comment lire et afficher une image 4 dimensions ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Antworten (1)
Walter Roberson
am 23 Mai 2017
Pour RGBA,
image(I1(:,:,1:3), 'alphadata', I1(:,:,4)); %NB, image(), pas imshow()
Pour CMYK, voir https://www.mathworks.com/matlabcentral/answers/101194-how-can-i-convert-cmyk-image-to-rgb
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))
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!