How to find average R value in an RGB image?

1 次查看(过去 30 天)
I am trying to split the RGB image into separate colors(like R,G,B) and find the average value for each colours. Please anyone can help me... I need this code for my project

回答(1 个)

Jan
Jan 2018-2-2
RGB = rand(640, 480, 3);
avgRGB = mean(reshape(RGB, [], 3), 1)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by