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

1 Ansicht (letzte 30 Tage)
i have to take mean value for each element of the matrix of an image how can i do that

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 19 Okt. 2012
mean(TheMatrix(:))
  1 Kommentar
Matt J
Matt J am 19 Okt. 2012
Bearbeitet: Matt J am 19 Okt. 2012
For large non-double arrays, this is more robust against overflow:
meanval=sum(A(:),'double')/numel(A);

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by