Hi Kees,
Thanks I tried doing the record session and got
IJ.setAutoThreshold(image, "Default");
Prefs.blackBackground = false;
IJ.run(image, "Convert to Mask", "");
--
George
On Mon, Aug 11, 2014 at 12:43 PM, Straatman, Kees (Dr.) <
[hidden email]> wrote:
> Hi George,
>
> You can also record java code using the Recorder. Just select Java from
> the dropdown menu.
>
> Best wishes
>
> Kees
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of
> George H
> Sent: 11 August 2014 10:29
> To:
[hidden email]
> Subject: Mimic macro of thresholding to Java plugin (newbie help)
>
> Hi,
>
> This is my first time posting and developing ImageJ plugin so already
> apologize ahead of time if this question is very newbieish.
>
> I've written a macro that does the following (Mainly got it from the record
> session)
>
> setAutoThreshold("Default");
> setOption("BlackBackground", false);
> run("Convert to Mask");
>
>
> I'm trying to do the same thing in the Java plugin, but I'm a bit lost as
> to how to do it.
> All I manage to get is the below.
>
> imagePlus.getChannelProcessor().setAutoThreshold("Default");
>
> Any tips on how I can do this setOption and convert to mask routines?
>
> Thanks
> --
> George
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html