How to ignore certain values in A histogram?
6 次查看(过去 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!