How to get the hue/saturation of a colourful images?
2 ビュー (過去 30 日間)
古いコメントを表示
I have a set of colourful images and I want to get the values of CMYK for each images using loop . how can i do that ?
0 件のコメント
回答 (2 件)
Constantino Carlos Reyes-Aldasoro
2020 年 1 月 6 日
If you want hue and saturation, then what you need is to transform from RGB to HSV, try rgb2hsv.
0 件のコメント
KALYAN ACHARJYA
2020 年 1 月 6 日
編集済み: KALYAN ACHARJYA
2020 年 1 月 6 日
"I want to get the values of CMYK for each images using"
One way: If the imahes is RGB, then youn can use the following to get the CMYK
C= 255-Red_component;
M= 255-Green_component;
Y= 255-Blue_component;
C=cmyk_image(:,:,1);
M=cmyk_image(:,:,2);
Y=cmyk_image(:,:,3);
K=cmyk_image(:,:,4);
Here loop may issue here, its FAQ to call images one by one and do processing
images=
for i=1:length(images)
im_data=imread(' ')
%RGB2CMYK
% Extract CMYK data
end
4 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!