Login  Register

Re: setThreshold NaN value

Posted by ebocher on Aug 30, 2007; 9:45am
URL: http://imagej.273.s1.nabble.com/setThreshold-NaN-value-tp3698503p3698505.html

Hi,

Thank you but it doesn't work.

I obtain the value 0 for the pixel. If I use imp.show() the pixel value is
NaN.

R1.

2007/8/30, Volker Bäcker <[hidden email]>:

>
> Try WindowManager.setTempCurrentImage(imp) instead of imp.show();
>
> Volker
>
> erwan bocher a écrit :
> > Dear all,
> >
> > I try to set a NaN value to my image.
> >
> > I use this
> >
> > ip.setThreshold(0.0d, 500.0d, ImageProcessor.RED_LUT);
> >
> >  ImagePlus imp = new ImagePlus("",ip);
> > imp.show();
> >  IJ.run("NaN Background");
> >
> > It works fine but I don't want to show the imagePlus.
> >
> > Is it another way to do this ?
> >
> > Thanks
> >
> > R1.
> >
> > Ps :  I use this code in a java application.
> >
>
> --
> passerelle antivirus du campus CNRS de Montpellier
> --
>



--
Ingénieur de recherche
Docteur en géographie,
spécialité géomatique
École Centrale de Nantes
Institut de recherche en sciences et techniques de la ville
http://www.irstv.cnrs.fr/
http://geosysin.iict.ch/irstv-trac/wiki
http://r1.bocher.free.fr
http://www.projet-sigle.org