Re: new version of Fast Filters plugin

Posted by Michael Schmid on
URL: http://imagej.273.s1.nabble.com/new-version-of-Fast-Filters-plugin-tp3684966p5013230.html

On Jun 21, 2015, at 11:16, justelouise wrote:
> I was able to get the results I need when running the plugin through he
> PlugInFilterrunner. I wasn't able to replicate it even though I just
> copy-pasted the PlugInFilterRunner implementation. The problem now is that
> the dialog box is showing for the fast filters plugin.

The dialog options are automatically filled in if you set Macro.setOptions(options) and the thread has a name starting with "Run$_". For an appropriate code, see

  https://github.com/imagej/imagej1/blob/master/ij/IJ.java#l257

But as I wrote previously, it would be much easier to have the Fast Filters somewhere in the menu and then simply call
  IJ.run(imp, "Fast Filters", options).
You even don't need to build a proper .jar; just create a .zip with all the class files you need and the plugins.config, have an underscore character in the filename, and place it into ImageJ/plugins or an immediate subfolder thereof.

Michael

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html