Login  Register

Re: Setting values to NaN with a macro

Posted by Gabriel Landini on Nov 06, 2015; 3:22pm
URL: http://imagej.273.s1.nabble.com/Setting-values-to-NaN-with-a-macro-tp5014841p5014877.html

james_minto wrote

> > In versions 1.44p and earlier, I could set zero values as NaN (not a
> > number) with the following macro:
> >
> > if(v==0)v=NaN;

Are you sure that 8-bit images support NAN?

Cheers

Gabriel

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html