OpenCV plugins not working (? java issue)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

OpenCV plugins not working (? java issue)

Rainer M. Engel
Hi..

I recently came across an update site with OpenCV based plugins (2).
Before that I was testing a separate template matching plugin (1).

To get the plugin from the update site I also updated my FIJI and right
now none of the mentioned plugins is working.

1) https://sites.google.com/site/qingzongtseng/template-matching-ij-plugin
On their site is an updated version for Java 1.8 available, which did
not solve the error for me.

> (Fiji Is Just) ImageJ 2.1.0/1.53c; Java 1.8.0_172 [64-bit]; Windows 10 10.0; 269MB of 12500MB (2%)
>  
> java.lang.UnsatisfiedLinkError: no jniopencv_core in java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
> at java.lang.Runtime.loadLibrary0(Runtime.java:870)
> at java.lang.System.loadLibrary(System.java:1122)
> at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1225)
> at org.bytedeco.javacpp.Loader.load(Loader.java:983)
> at org.bytedeco.javacpp.Loader.load(Loader.java:882)
> at org.bytedeco.javacpp.opencv_core.<clinit>(opencv_core.java:10)
> 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:898)
> at TemplateMatching.cvMatch_Template.doMatch(cvMatch_Template.java:232)
> at TemplateMatching.cvMatch_Template.doMatch(cvMatch_Template.java:219)
> at TemplateMatching.cvMatch_Template.run(cvMatch_Template.java:91)
> 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:65)
> at ij.IJ.run(IJ.java:317)
> at ij.IJ.run(IJ.java:328)


2) https://imagej.net/Multi-Template_Matching

> ((Fiji Is Just) ImageJ 2.1.0/1.53c; Java 1.8.0_172 [64-bit]; Windows 10 10.0; 128MB of 12500MB (1%)
>  
> java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.opencv_core$Mat
> at net.imagej.legacy.LegacyService.runLegacyCompatibleCommand(LegacyService.java:307)
> at net.imagej.legacy.DefaultLegacyHooks.interceptRunPlugIn(DefaultLegacyHooks.java:166)
> at ij.IJ.runPlugIn(IJ.java)
> at ij.Executer.runCommand(Executer.java:150)
> at ij.Executer.run(Executer.java:65)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.opencv_core$Mat
> at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> at java.util.concurrent.FutureTask.get(FutureTask.java:192)
> at net.imagej.legacy.LegacyService.runLegacyCompatibleCommand(LegacyService.java:303)
> ... 5 more
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.opencv_core$Mat
> at ijopencv.ij.ImagePlusMatConverter.toMat(ImagePlusMatConverter.java:105)
> at ijopencv.ij.ImagePlusMatConverter.toMat(ImagePlusMatConverter.java:75)
> at ijopencv.ij.ImagePlusMatConverter.convert(ImagePlusMatConverter.java:48)
> at ijopencv.examples.TemplateMatchingJ_.run(TemplateMatchingJ_.java:63)
> at org.scijava.command.CommandModule.run(CommandModule.java:196)
> at org.scijava.module.ModuleRunner.run(ModuleRunner.java:165)
> at org.scijava.module.ModuleRunner.call(ModuleRunner.java:124)
> at org.scijava.module.ModuleRunner.call(ModuleRunner.java:63)
> at org.scijava.thread.DefaultThreadService.lambda$wrap$2(DefaultThreadService.java:225)
> 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)
> ... 1 more


Is there already a solution to this issue probably related to my used
java version? I assume this might be a problem for others as well.

Kind regards,
Rainer



--
Rainer M. Engel, Dipl. Digital Artist
Berlin

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