Re: Mimic macro of thresholding to Java plugin (newbie help)
Posted by
Krs5 on
Aug 11, 2014; 9:41am
URL: http://imagej.273.s1.nabble.com/Mimic-macro-of-thresholding-to-Java-plugin-newbie-help-tp5009085p5009086.html
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