/* Uses bash script to set ImageJ-Stitch as described here: https://imagej.net/plugins/image-stitching ''You can change the fraction of the area that is blended using the scripting language. By default it is set to 0.2 (20%), but you can change it to anything between 0 and 1. From now on, the blending will work only on the outer 10% of each tile. This change is only valid for the currently running Fiji instance.'' Calls Beanshell scripts that have been saved locally. */ macroL = "SetFusionAreaPC_for_IJStitch_v230812.ijm"; Dialog.create("Options:" + macroL); fusionAreas = Array.resample(Array.getSequence(2), 11); Dialog.addRadioButtonGroup("Blended Area Fraction \(default is 0.2\):", fusionAreas, 1, 5, "0.2"); Dialog.show(); fusionFraction = Dialog.getRadioButton(); bshScript = "mpicbg.stitching.fusion.BlendingPixelFusion.fractionBlended = " + fusionFraction; IJ.log("Temporary fractionBlend applied:") eval("bsh", bshScript);