How to ignore certain values in A histogram?

4 ビュー (過去 30 日間)
Sean
Sean 2015 年 4 月 21 日
回答済み: Chad Greene 2015 年 4 月 21 日
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.

採用された回答

Chad Greene
Chad Greene 2015 年 4 月 21 日
You can get statistics with NaNs using nanmean or mean(A(isfinite(A(:)))).

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by