how to range the value of h component between [0 1]
    조회 수: 3 (최근 30일)
  
       이전 댓글 표시
    
i want to limit the range of h component between [0 1]
채택된 답변
  Image Analyst
      
      
 2014년 2월 3일
        rgb = imread('peppers.png');
hsv = rgb2hsv(rgb);
h = hsv(:, :, 1);
min(min(h))
max(max(h))
ans =
     0
ans =
          0.99914089347079
Are you talking about hsv color space? It already seems to be limited to the range 0-1 as you can see above.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


