How to exclude NaN values from evaluation on raster data

3 visualizaciones (últimos 30 días)
Karolina
Karolina el 5 de Ag. de 2015
Editada: Karolina el 7 de Ag. de 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?

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 5 de Ag. de 2015
x_no_nans = x(~isnan(x))
  4 comentarios
Sean de Wolski
Sean de Wolski el 6 de Ag. de 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 el 7 de Ag. de 2015
Editada: Karolina el 7 de Ag. de 2015
I have two datasets where the threshold is zero. EM is for these data: 0.9862, and 0.5902

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by