Login  Register

Re: setThreshold NaN value

Posted by Volker Baecker on Aug 30, 2007; 9:18am
URL: http://imagej.273.s1.nabble.com/setThreshold-NaN-value-tp3698503p3698504.html

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
--