Re: Bring up threshold menu
Posted by
chenyanpei on
Mar 17, 2011; 4:04pm
URL: http://imagej.273.s1.nabble.com/Bring-up-threshold-menu-tp3685355p3685358.html
How I can get a "threshold" image automaticly. I running
run("8-bit");
run("Threshold...");
setThreshold(255, 255);
run("Convert to Mask");
saveAs("Jpeg", dir2+list[i]);
close();
but I still get the image
Title: 00002.jpg
Width: 738 pixels
Height: 495 pixels
Pixel size: 1x1 pixel
ID: -2
Coordinate origin: 0,0
Bits per pixel: 8 (grayscale LUT)
Display range: 0-255
No Threshold
Uncalibrated
Path: K:\R1\00002.jpg
No Selection
Thank you very much!
2011/3/17 Himanish Ghosh <
[hidden email]>
> Hello
>
> Jerome,
>
>
> Thank you very much, it worked just right.
>
> I tried all sorts of combinations before i sent the email.
>
> cheers
>
>
>
> On Thu, Mar 17, 2011 at 3:09 PM, Jerome Mutterer <
>
[hidden email]> wrote:
>
> > Himanish, you could use:
> >
> > run("Threshold...");
> > waitForUser("Adjsut Threshold and click OK to continue");
> >
> > Sincerely,
> > Jerome
> >
> > On Thu, Mar 17, 2011 at 2:29 PM, Himanish Ghosh <
[hidden email]
> > >wrote:
> >
> > > Hello All,
> > >
> > > From my macro I would like to call the threshold image menu and show
> it
> > > and
> > > wait for the user to adjust parameters in the threshold dialog and then
> > > resume the macro.
> > >
> > > How can this be done
> > >
> > > thank you
> > >
> >
>
>
>
> --
> Himanish Ghosh
>
>
http://www.jaxtr.com/himanishghosh> the journey has begun
>
--
Chen Yanpei, phD
MssMat
Ecole Centrale Paris
Grande voie des vignes
92295 Châtenay Malabry
Paris, France