how to range the value of h component between [0 1]
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
ashok
am 3 Feb. 2014
Beantwortet: Image Analyst
am 3 Feb. 2014
i want to limit the range of h component between [0 1]
1 Kommentar
Akzeptierte Antwort
Image Analyst
am 3 Feb. 2014
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dialog Boxes finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!