how to range the value of h component between [0 1]
1 次查看(过去 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 中查找有关 Dialog Boxes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!