i have to take mean value for each element of the matrix of an image how can i do that

2 ビュー (過去 30 日間)
i have to take mean value for each element of the matrix of an image how can i do that

採用された回答

Walter Roberson
Walter Roberson 2012 年 10 月 19 日
mean(TheMatrix(:))
  1 件のコメント
Matt J
Matt J 2012 年 10 月 19 日
編集済み: Matt J 2012 年 10 月 19 日
For large non-double arrays, this is more robust against overflow:
meanval=sum(A(:),'double')/numel(A);

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

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by