Question about Conversion RGB

3 ビュー (過去 30 日間)
Nour George
Nour George 2020 年 7 月 14 日
回答済み: Walter Roberson 2020 年 7 月 14 日
I have this question to convert from RGB color to CMYK color
when i execute the Code I get this result
ans =
'RGB'
This means that no conversion occurred and the image did not appear to me, what can i do ?
folder = iccroot;
disp(folder)
profiles = iccfind(folder)
size(profiles)
currentProfile = profiles{1}
currentProfile.Description
ProfileName = currentProfile.Description.String
[~,descriptions] = iccfind(folder)
descriptions
[profiles,descriptions] = iccfind(folder,'rgb')
descriptions
currentProfile.Description
P = iccread('sRGB.icm');
P_new = iccwrite(P,'my_profile.icm');
I_rgb = imread('Pepper.png');
inprof = iccread('sRGB.icm');
outprof = iccread('EV2456 User 5000K G2.2.icc');
C = makecform('icc',inprof,outprof)
I_cmyk = applycform(I_rgb,C);
imwrite(I_cmyk,'pep_cmyk.tif','tif')
info = imfinfo('pep_cmyk.tif');
info.PhotometricInterpretation

回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 7 月 14 日
The Enzo ev2456 is not a CMYK device.
Remember that icc deals with rgb profiles as well as CMYK.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by