Can ImageJ1 plugins be called from pyImageJ when installed on Imagej2 FIJI?

Hi,

I am able to execute the plugins from ImageJ itself, but totally fail when I try to do so from pyImageJ both by trying to do so using
ij.py.run_macro(f"run("…ImageJ1 plugin…");")

and directly by called it from ij.py.run_plugin("…ImageJ1 plugin…", None)

any ideas?

Thanks

Hello,
I’m not able to do it by run_plugin but with macro I was able to do it

args = {}
macro = f"""
open("{imageName}")
run("Iterative Deconvolve 3D", "image={imageName} point={imageName} output=Deconvolved show perform wiener=0.000 low=1 z_direction=0.3 maximum={number} terminate=0.010")
selectWindow("Deconvolved_{number}");
saveAs("Tiff", "{imageName.stem}_Deconvolved{number}.tif");
    """
ij.py.run_macro(macro, args)

Here a code example with a mix of python and macro

1 Like

@liort did @Aymeric’s solution work for you?