How to exclude NaN values from evaluation on raster data
조회 수: 3 (최근 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!