How to get the hue/saturation of a colourful images?

조회 수: 9 (최근 30일)
ahmad Al sarairah
ahmad Al sarairah 2020년 1월 6일
댓글: Image Analyst 2020년 1월 7일
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 ?

답변 (2개)

Constantino Carlos Reyes-Aldasoro
If you want hue and saturation, then what you need is to transform from RGB to HSV, try rgb2hsv.

KALYAN ACHARJYA
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;
Other way: rgb2cmtk or here
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
Here rgb2hsv, Suggest to read more here
  댓글 수: 4
ahmad Al sarairah
ahmad Al sarairah 2020년 1월 7일
ok, How to use this code of the hundred and forty pictures and then extract the values of c,m,y,k and put them in structure array .

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by