How to exclude NaN values from evaluation on raster data
2 次查看(过去 30 天)
显示 更早的评论
I have a raster which have NaN values. I would like to evaluate graythresh for my data, but the NaN values are taken into account and as a results I have 0 (zero). Is there a way to exclude NaN values from evaluation or remove them from data?
0 个评论
采纳的回答
Sean de Wolski
2015-8-5
x_no_nans = x(~isnan(x))
4 个评论
Sean de Wolski
2015-8-6
What is EM, the effectiveness metric output? Otsu is not great for all images, it's really only for when there is an object in the foreground.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!