Login  Register

Mimic macro of thresholding to Java plugin (newbie help)

Posted by George H on Aug 11, 2014; 9:29am
URL: http://imagej.273.s1.nabble.com/Mimic-macro-of-thresholding-to-Java-plugin-newbie-help-tp5009085.html

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