How to find average R value in an RGB image?

1 回表示 (過去 30 日間)
Sivasurya J
Sivasurya J 2018 年 2 月 2 日
回答済み: Jan 2018 年 2 月 2 日
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 Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by