필터 지우기
필터 지우기

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

조회 수: 1 (최근 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