converting RGB images to HSV images

조회 수: 2 (최근 30일)
Mary
Mary 2013년 2월 27일
Hi all I have an image and I converted it from RGB to HSV. I know H is between 0-360 degree. when I separate the H, S, V , I found that H is from 0-1. could you please tell me what this numbers in H matrix represent? your help is highly appreciated my steps are
RGB=imread('Picture.jpg'); HSV=rgb2hsv(RGB); H=HSV(:,:,1); S=HSV(:,:,2); V=HSV(:,:,3);
  댓글 수: 2
Algorithms Analyst
Algorithms Analyst 2013년 2월 27일
Yes this is your normalized result because direct computing by calling a function rgb2hsv this gives you normalized result.if you wan to calculate manually you can easily caculate it.Secondly when you call rgb2hsv the direct functions assum that if image(image>1)=1 and if image(image<0)=0.It means that if the value is less than 0 it will appear 0 and if value is greater than 1 it will appear 1.
Mary
Mary 2013년 3월 1일
thank you Algorithms Analyst for your great information

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

채택된 답변

Thorsten
Thorsten 2013년 2월 27일
Just multiply H by 360 and you get hue values between 0 and 360 degrees.
  댓글 수: 1
Mary
Mary 2013년 3월 1일
Thank you Thorsten for your great information

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by