Login  Register

Thesholding in a plugin

Posted by Gib Bogle on Dec 07, 2005; 3:03am
URL: http://imagej.273.s1.nabble.com/Thesholding-in-a-plugin-tp3704311.html

I have written a plugin for extracting particle trajectories from a
sequence of frames.  Currently I supply the threshold parameters that
get applied to each frame, and do the thresholding thus:

                IJ.setThreshold(minThreshold, maxThreshold);
                IJ.run("Threshold", "thresholded remaining black");

Now I want to add the capability to interactively determine the optimal
threshold settings when the program executes (instead of using supplied
values).  I think I need to be able to do two things.  First, I need the
execution to pause while I'm manually adjusting the slider in the
Threshold pop-up (currently it carries on, not giving me a chance to do
the adjustment).  Second, I need to be able to retrieve the values for
minThreshold and maxThreshold.

Can these things be done?

Thanks
Gib

--
Dr. Gib Bogle
Research Scientist
Bioengineering Institute
University of Auckland
New Zealand

http://www.bioeng.auckland.ac.nz

[hidden email]
(64-9) 373-7599 Ext. 87030