How to ignore certain values in A histogram?
조회 수: 5 (최근 30일)
이전 댓글 표시
Say I have an grey scale image S and I'm looking to ignore all values above 250, how do I do it with out using NaN? the reason I don't want to use NaN is because Im looking to take statistical information from the resultant image such as average etc.
댓글 수: 0
채택된 답변
Chad Greene
2015년 4월 21일
You can get statistics with NaNs using nanmean or mean(A(isfinite(A(:)))).
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!