rgb2hsv conversion

조회 수: 5 (최근 30일)
Mohammad Golam Kibria
Mohammad Golam Kibria 2011년 5월 3일
can any one tell me what does each matrix of
rgb2hsv in matlab represent.
does h value represent value in radians.
what about s and v?
can any one help?

채택된 답변

Andrew Newell
Andrew Newell 2011년 5월 3일
HSV stands for Hue, Saturation, and Value (also known as Brightness). See this Wikipedia article for an explanation of these terms.
  댓글 수: 2
Mohammad Golam Kibria
Mohammad Golam Kibria 2011년 5월 4일
what I need to know is explained bellow elaborately:
suppose I have a matrix I as follows:
I(:,:,1) =
1 1 1
2 2 2
3 3 3
I(:,:,2) =
55 55 55
55 55 55
55 55 55
I(:,:,3) =
200 200 200
200 200 200
200 200 200
After converting rgb to HSV I have the following output:
I1=rgb2hsv(I)
I1(:,:,1) =
0.6214 0.6214 0.6214
0.6221 0.6221 0.6221
0.6227 0.6227 0.6227
I1(:,:,2) =
0.9950 0.9950 0.9950
0.9900 0.9900 0.9900
0.9850 0.9850 0.9850
I1(:,:,3) =
0.7843 0.7843 0.7843
0.7843 0.7843 0.7843
0.7843 0.7843 0.7843
perhaps I1(:,:,1) denotes H value.
The value I1(1,1,1) i.e 0.6214 what this value mean, is it .6214 degree or 0.6214 radian. perhaps i can clear what I need to know.
Walter Roberson
Walter Roberson 2011년 5월 4일
0.6214 fraction of a circle. Radians divided by 2*Pi

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by