How to run Register Virtual Stack Slices as a macro without user interaction?

I tried already with Fiji-java6, it does not work. Thanks for trying anyway! I should probably learn Jython…

I just figure out that mpicbg has two jars:
one is core jar, located in \jars, with a name like: mpicbg-...jar
the other is the jar for fiji, located in \plugins, with a name with additional '’, like mpicbg-
...jar.

These two jars need to be paired together with same version.
The interface is quite consistent, so there should be no need to replace them.

I still cannot figure out how the modified plugin does not work . I have checked that the error message mentioned method "mpicbg.models.Model.filterRansac (Ljava/util/List;Ljava/util/Collection;IFF)Z indeed exist in mpicbg-1.4.1.jar.

Hi - yes, have mpicbg-1.4.1.jar in \jars and mpicbg_-1.4.1.jar in \plugin.

I just tried again with a freshly unzipped fiji-java8, replaced RVSS with your register_virtual_stack_slices-3.0.7-recompile3.0.7.3.jar but same error:

/C:/Users/pucci/Desktop/Fiji.app/jars/mpicbg-1.4.1.jar
java.lang.NoSuchMethodError: mpicbg.models.Model.filterRansac(Ljava/util/List;Ljava/util/Collection;IFF)Z
	at Register_Virtual_Stack_MT.register(Register_Virtual_Stack_MT.java:1766)
	at Register_Virtual_Stack_MT.exec(Register_Virtual_Stack_MT.java:1246)
	at Register_Virtual_Stack_MT.exec(Register_Virtual_Stack_MT.java:427)
	at Register_Virtual_Stack_MT.exec(Register_Virtual_Stack_MT.java:339)
	at Register_Virtual_Stack_MT.run(Register_Virtual_Stack_MT.java:294)
	at ij.IJ.runUserPlugIn(IJ.java:235)
	at ij.IJ.runPlugIn(IJ.java:198)
	at ij.Executer.runCommand(Executer.java:150)
	at ij.Executer.run(Executer.java:68)
	at ij.IJ.run(IJ.java:317)
	at ij.IJ.run(IJ.java:328)
	at ij.macro.Functions.doRun(Functions.java:686)
	at ij.macro.Functions.doFunction(Functions.java:98)
	at ij.macro.Interpreter.doStatement(Interpreter.java:278)
	at ij.macro.Interpreter.doBlock(Interpreter.java:712)
	at ij.macro.Interpreter.doStatement(Interpreter.java:323)
	at ij.macro.Interpreter.doIf(Interpreter.java:1090)
	at ij.macro.Interpreter.doStatement(Interpreter.java:299)
	at ij.macro.Interpreter.doBlock(Interpreter.java:712)
	at ij.macro.Interpreter.doStatement(Interpreter.java:323)
	at ij.macro.Interpreter.doFor(Interpreter.java:634)
	at ij.macro.Interpreter.doStatement(Interpreter.java:305)
	at ij.macro.Interpreter.doStatements(Interpreter.java:264)
	at ij.macro.Interpreter.run(Interpreter.java:160)
	at ij.macro.Interpreter.run(Interpreter.java:93)
	at ij.macro.MacroRunner.run(MacroRunner.java:139)
	at java.lang.Thread.run(Thread.java:748)

Thank you

As I mentioned before, can you try on GUI by hand(not by macro), using a simple demo of a few images inside a folder to do registration? If this works, then something might be missing or incorrectly retrieved from macro argument, which might cause failure in repload of multiple java methods with different formal argument based on incorrect actual argument. If this is true, then the direction for next step is more clear.

I have tried on two tifs, either using reference image or not, advanced or not, and both works well on GUI.

Oh sorry I did not get you wanted me to try manually.

I did and got the same error:

[INFO] Reading available sites from https://imagej.net/
There was a problem with the class mpicbg.models.Model which can be found here:
/C:/Users/pucci/Desktop/Fiji.app/jars/mpicbg-1.4.1.jar
java.lang.NoSuchMethodError: mpicbg.models.Model.filterRansac(Ljava/util/List;Ljava/util/Collection;IFF)Z
	at Register_Virtual_Stack_MT.register(Register_Virtual_Stack_MT.java:1766)
	at Register_Virtual_Stack_MT.exec(Register_Virtual_Stack_MT.java:1246)
	at Register_Virtual_Stack_MT.exec(Register_Virtual_Stack_MT.java:427)
	at Register_Virtual_Stack_MT.exec(Register_Virtual_Stack_MT.java:339)
	at Register_Virtual_Stack_MT.run(Register_Virtual_Stack_MT.java:294)
	at ij.IJ.runUserPlugIn(IJ.java:235)
	at ij.IJ.runPlugIn(IJ.java:198)
	at ij.Executer.runCommand(Executer.java:150)
	at ij.Executer.run(Executer.java:68)
	at java.lang.Thread.run(Thread.java:748)

It fails when trying to register the first image with the ref image.

Thanks