Multi-Template Matching to align slices in stack and issue when used with FIJI 1.53b

Hi,

I have been using Template Matching plugin to align timelapse images loaded as stacks in FIJI. I wanted to try the newer “Multi-Template Matching plugin” for this same purpose.

USAGE QUESTION
Do you know if I can get only the X and Y drifts from the Multi-Template matching plugin as it is the case for the “Align slices in stack” method of the Template Matching plugin?

ISSUE WITH FIJI 1.53a
The plugin works in FIJI 1.53a, but when I tried on another machine where it is installed FIJI 1.53b I get the following error message:

console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0.
[ERROR] Traceback (most recent call last):
  File "Plugins/Multi-Template-Matching/Template_Matching_Image.py", line 176, in <module>
  File "C:/Users/Laurent Thomas/Desktop/Fiji.app/jars/Lib/Template_Matching/MatchTemplate_Module.py", line 270, in getHit_Template
  File "C:/Users/Laurent Thomas/Desktop/Fiji.app/jars/Lib/Template_Matching/MatchTemplate_Module.py", line 53, in MatchTemplate
  File "C:/Users/Laurent Thomas/Desktop/Fiji.app/jars/Lib/ImageConverter.py", line 35, in ImProcToMat
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at org.bytedeco.javacpp.Loader.load(Loader.java:941)
	at org.bytedeco.javacpp.Loader.load(Loader.java:882)
	at org.bytedeco.javacpp.helper.opencv_core$AbstractArray.<clinit>(opencv_core.java:109)
	at ijopencv.ij.ImagePlusMatConverter.toMat(ImagePlusMatConverter.java:133)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.opencv_core

	at org.python.core.Py.JavaError(Py.java:552)
	at org.python.core.Py.JavaError(Py.java:543)
	at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:190)
	at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:206)
	at org.python.core.PyObject.__call__(PyObject.java:497)
	at org.python.core.PyObject.__call__(PyObject.java:501)
	at org.python.core.PyMethod.__call__(PyMethod.java:141)
	at ImageConverter$py.ImProcToMat$1(C:/Users/Laurent Thomas/Desktop/Fiji.app/jars/Lib/ImageConverter.py:37)
	at ImageConverter$py.call_function(C:/Users/Laurent Thomas/Desktop/Fiji.app/jars/Lib/ImageConverter.py)
	at org.python.core.PyTableCode.call(PyTableCode.java:171)
	at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
	at org.python.core.PyFunction.function___call__(PyFunction.java:471)
	at org.python.core.PyFunction.__call__(PyFunction.java:466)
	at Template_Matching.MatchTemplate_Module$py.MatchTemplate$1(C:/Users/Laurent Thomas/Desktop/Fiji.app/jars/Lib/Template_Matching/MatchTemplate_Module.py:60)
	at Template_Matching.MatchTemplate_Module$py.call_function(C:/Users/Laurent Thomas/Desktop/Fiji.app/jars/Lib/Template_Matching/MatchTemplate_Module.py)
	at org.python.core.PyTableCode.call(PyTableCode.java:171)
	at org.python.core.PyBaseCode.call(PyBaseCode.java:171)
	at org.python.core.PyFunction.__call__(PyFunction.java:434)
	at Template_Matching.MatchTemplate_Module$py.getHit_Template$3(C:/Users/Laurent Thomas/Desktop/Fiji.app/jars/Lib/Template_Matching/MatchTemplate_Module.py:298)
	at Template_Matching.MatchTemplate_Module$py.call_function(C:/Users/Laurent Thomas/Desktop/Fiji.app/jars/Lib/Template_Matching/MatchTemplate_Module.py)
	at org.python.core.PyTableCode.call(PyTableCode.java:171)
	at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
	at org.python.core.PyFunction.function___call__(PyFunction.java:471)
	at org.python.core.PyFunction.__call__(PyFunction.java:466)
	at org.python.core.PyFunction.__call__(PyFunction.java:456)
	at org.python.pycode._pyx0.f$0(Plugins/Multi-Template-Matching/Template_Matching_Image.py:254)
	at org.python.pycode._pyx0.call_function(Plugins/Multi-Template-Matching/Template_Matching_Image.py)
	at org.python.core.PyTableCode.call(PyTableCode.java:171)
	at org.python.core.PyCode.call(PyCode.java:18)
	at org.python.core.Py.runCode(Py.java:1614)
	at org.python.core.__builtin__.eval(__builtin__.java:497)
	at org.python.core.__builtin__.eval(__builtin__.java:501)
	at org.python.util.PythonInterpreter.eval(PythonInterpreter.java:259)
	at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:57)
	at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:31)
	at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
	at org.scijava.script.ScriptModule.run(ScriptModule.java:160)
	at org.scijava.module.ModuleRunner.run(ModuleRunner.java:168)
	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:127)
	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:66)
	at org.scijava.thread.DefaultThreadService.lambda$wrap$2(DefaultThreadService.java:228)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.opencv_core
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at org.bytedeco.javacpp.Loader.load(Loader.java:941)
	at org.bytedeco.javacpp.Loader.load(Loader.java:882)
	at org.bytedeco.javacpp.helper.opencv_core$AbstractArray.<clinit>(opencv_core.java:109)
	at ijopencv.ij.ImagePlusMatConverter.toMat(ImagePlusMatConverter.java:133)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:188)
	... 42 more

I made sure that the IJ-OpenCV update site is checked, so I am not sure what is the issue here.

Thanks a lot for your help!!
ELEO

For the exception see this older thread: