Posted by
Michael Schmid on
URL: http://imagej.273.s1.nabble.com/new-version-of-Fast-Filters-plugin-tp3684966p5013194.html
Hi Louise (?)
for IJ.run, the plugin must appear somewhere in the ImageJ menus. If you create your own collection of plugins as a .jar file (or just a .zip file with the class files will also do), have a plugins.config file and specify it there.
See, e.g.
http://rsbweb.nih.gov/ij/plugins/jar-demo.html http://imagejdocu.tudor.lu/doku.php?id=howto:plugins:howto_create_an_imagej_plugin_jar_file---
For the direct call to FastFilters.filterFloat, it is not enough if you say you wonder "why the results are different". You have to say (1) which operation you do (e.g. in the "run" format of the macro recorder) and (2) how the result differs.
There are several things that ImageJ does before and after running a PlugInFilter:
- Converting to float and back (separately for R, G, B of RGB images) because of the CONVERT_TO_FLOAT flag
- roi.endPaste() if there is a Roi (finishing previous paste operations)
- For area Rois, transferring the Roi from the ImagePlus to the ImageProcessor
- Creating a snapshot of the ImageProcessor (because of the SNAPSHOT flag)
- Reverting the pixels outside a non rectangular Roi to the original after calling the PluginFilter (because of the SUPPORTS_MASKING flag)
Michael
________________________________________________________________
On Jun 17, 2015, at 14:17, justelouise wrote:
> Then I have to register first the plugin into ImageJ, right?
>
> BUT. What I'm doing with other plugins is just copying the .java file into
> my project then tweak it according to my needs then just call the run
> method. That's how I'm using the Fast_Filters plugin. But, I still wasn't
> able to get the output I had when using ImageJ. Is ImageJ doing something
> else to the image before running it with the fast filters plugin?
>
> I'm sorry if I keep on asking question. I was just really wondering as to
> why the results are different evn though the way I'm calling the plugin
> seems to be working.
>
>
>
> --
> View this message in context:
http://imagej.1557.x6.nabble.com/new-version-of-Fast-Filters-plugin-tp3684966p5013193.html> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html