フィルターのクリア

Image from RGB to another one

16 ビュー (過去 30 日間)
Nour George
Nour George 2020 年 7 月 12 日
コメント済み: Image Analyst 2020 年 7 月 14 日
I have two Questions :
1. Read the RGB image?
2. Convert RGB color image into CMYK color image?
I solve the first one
figure
image_mat = imread('color.jpg');
imshow(image_mat)
but How can i solve the second one ?

採用された回答

Image Analyst
Image Analyst 2020 年 7 月 13 日
Did you even try the function in the link KSSV gave you? Because I did, and the attached code worked just fine.
  8 件のコメント
Nour George
Nour George 2020 年 7 月 14 日
My problem was solved , the last Question is How can i display cmyk image , what is the instruction
Image Analyst
Image Analyst 2020 年 7 月 14 日
As I showed you, you can use imshow() to show the component channels. And as Walter and I have both said, displaying 3 or 4 of the cmyk channels as an RGB image makes little sense but if you want, you can obtain that gibberish by extracting the three channels you want into an rows-by-columns-by3 image and using imshow(). For more sophisticated ways of converting a multi-channel color image into a 3-channel RGB image, see the attached paper.

サインインしてコメントする。

その他の回答 (1 件)

KSSV
KSSV 2020 年 7 月 12 日
  10 件のコメント
Nour George
Nour George 2020 年 7 月 13 日
Excuse me , Can you make it for me ? because i don't understand How can i take .icc from the link
Can you solve the Question by the link that you refers to <because I don't understand
Walter Roberson
Walter Roberson 2020 年 7 月 13 日
image_mat = imread('baby.jpg');
inprof = iccread('srgb.icm'); outprof = iccread('USSheetfedCoated.icc');
cform = makecform('icc', inprof, outprof); %conversion from SRGB of a CRT to CMYK of a particular device
image_cmyk = applycform(image_mat, cform);
imshow(image_cmyk(:,:,1:3))

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by