Hue in HSV Color Space

조회 수: 9 (최근 30일)
Salad Box
Salad Box 2023년 1월 13일
댓글: Salad Box 2023년 1월 13일
Hi,
In the HSV colour space, if I have 4 sample points with hue angle of [0, 90, 180, 270], how can I convert them so that their hue values are in the range of (0, 1)?

채택된 답변

Kevin Holly
Kevin Holly 2023년 1월 13일
편집: Kevin Holly 2023년 1월 13일
The max angle is 360 degrees. So, divide your angles by the maxium value to obtain a fraction of 1.
[0, 90, 180, 270]/360
ans = 1×4
0 0.2500 0.5000 0.7500
  댓글 수: 1
Salad Box
Salad Box 2023년 1월 13일
Your answer is very clear and precise. Thank you.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by