How to exclude NaN values from evaluation on raster data

3 vues (au cours des 30 derniers jours)
Karolina
Karolina le 5 Août 2015
Modifié(e) : Karolina le 7 Août 2015
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?

Réponse acceptée

Sean de Wolski
Sean de Wolski le 5 Août 2015
x_no_nans = x(~isnan(x))
  4 commentaires
Sean de Wolski
Sean de Wolski le 6 Août 2015
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.
Karolina
Karolina le 7 Août 2015
Modifié(e) : Karolina le 7 Août 2015
I have two datasets where the threshold is zero. EM is for these data: 0.9862, and 0.5902

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by