Login  Register

Calling Pairwise Stitch plugin from a script

Posted by Alex-2 on Jun 10, 2020; 8:00am
URL: http://imagej.273.s1.nabble.com/Calling-Pairwise-Stitch-plugin-from-a-script-tp5023466.html

I'm trying to figure out the syntax for calling the Pairwise Stitch plugin from a Python Script.
I can get the plugin to react but I can't figure out the syntax for the input arguments.  I tired the macro recorder but its hints don't seem to be helpful.
I've tried: 
imp1 = IJ.openImage('/path/to/image1.tif')
imp2 = IJ.openImage('/path/to/image2.tif')IJ.runPlugIn('plugin.Stitching_Pairwise', 'imp1', 'imp2')
That doesn't complain about argument 1 not being a string or less than 2 images being open, but I can't figure out how to pass the additional input arguments to setup the plugin, or how to return the result.
Any help would be greatly appreciated.
ThanksAlex

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