Re: make settings in the IJ.doCommand("..."); - or IJ.run("..."); -command of a plugin
Posted by
Gabriel Landini on
Sep 05, 2009; 9:29am
URL: http://imagej.273.s1.nabble.com/make-settings-in-the-IJ-doCommand-or-IJ-run-command-of-a-plugin-tp3691123p3691124.html
On Saturday 05 September 2009,
[hidden email] wrote:
> I’ve got a lot of images to analyze, and I’d like to write a Plugin, that
> does the following things:
Sorry to ask, why a plugin? You have a 2 or 3 lines macro that does what you
want. My take on this is that plugins are useful extensions for doing things
not currently available, but writing a plugin that just calls the commands
already existent and callable from a macro, may not give you a big advantage.
There are some technical reasons why you may want to use a plugin instead,
like thread safety. However if you just want to analyse some images, I would
use the extra time that will take writing and debugging the plugin to analyse
the images with the already existing macro.
Anyway, to run the particle analyzer in a plugin, you need to call the
ParticleAnalyzer class with your image's ImageProcessor.
Have a look here:
http://rsb.info.nih.gov/ij/developer/api/ij/plugin/filter/ParticleAnalyzer.htmlCheers
G.