IPDemo Plugin - calling 'IJ.run(..)' - Image is locked
Posted by Ghislain Bugnicourt on Oct 09, 2008; 8:26am
URL: http://imagej.273.s1.nabble.com/IPDemo-Plugin-calling-IJ-run-Image-is-locked-tp3694825.html
Hello.
I am trying to create a plugin that counts the number of lines that cross a circle around a point (more precisely, the number of neurites emitted by a neuron in culture). I am only at the first steps.
I downloaded the IPDemo plugin, and I tried to modify it, by replacing a button action by :
IJ.run("Median...", radius="2");
The problem is that "the image is locked" when I click this button. What should I modify to be able to call any IJ action ?
Actually, I don't want to use ip.medianFilter() in the IPdemo plugin, and I think that the problem won't only concern the Median call. For instance I did the same with IJ.run("Threshold"), but the problem is I can't use the 'reset' button after I called this Threshold window (this time, the image was not locked...).
So, my question is : did I choose the good plugin to work on (namely IPdemo) ? Or should I change the structure of my plugin ?
Thanks for your attention,
Regards,
Ghislain Bugnicourt - PhD
Institut Néel - CNRS - France