How to calculate rgb chromaticity value for set of images?
6 次查看(过去 30 天)
显示 更早的评论
4 个评论
Walter Roberson
2019-8-18
meanRGB = squeeze( sum(sum( double(YourImage), 1), 2) ./ (size(YourImage,1).*size(YourImage,2)) );
Or if you have R2019a or later,
meanRGB = squeeze(mean(YourImage, [1 2]));
回答(1 个)
Image Analyst
2019-8-18
To convert ot grayscale, use rgb2gray().
To change the colors or enhance the colors, try the attached demos.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Filtering and Enhancement 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!