フィルターのクリア

how to range the value of h component between [0 1]

1 回表示 (過去 30 日間)
ashok
ashok 2014 年 2 月 3 日
回答済み: Image Analyst 2014 年 2 月 3 日
i want to limit the range of h component between [0 1]
  1 件のコメント
Walter Roberson
Walter Roberson 2014 年 2 月 3 日
What "h component" ?

サインインしてコメントする。

採用された回答

Image Analyst
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 件)

カテゴリ

Help Center および File ExchangeGraphics Object Identification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by