How to get the hue/saturation of a colourful images?
10 ビュー (過去 30 日間)
古いコメントを表示
I have a set of color images and I want to get the values of hue and saturation and brightness using matlab , But I want to get the values quickly for all the images because the number of images is too large.
thanks to all.
0 件のコメント
回答 (2 件)
KALYAN ACHARJYA
2019 年 12 月 29 日
rgb2hsv and get the data
4 件のコメント
KALYAN ACHARJYA
2019 年 12 月 29 日
編集済み: KALYAN ACHARJYA
2019 年 12 月 29 日
for i=1:...
variable_name{i}=data_to_be_save
end
See here
Image Analyst
2019 年 12 月 29 日
Then inside the loop over k, call rgb2hsv(). If you want the means, do
hsvImage = rgb2hsv(rgbImage);
hmean(k) = mean2(hsvImage(:, :, 1))
smean(k) = mean2(hsvImage(:, :, 2))
vmean(k) = mean2(hsvImage(:, :, 3))
5 件のコメント
Image Analyst
2020 年 1 月 7 日
mean2() is a function in the Image Processing Toolbox that takes the mean of a 2-D array. It's basically the same as mean(array(:)).
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!