Block Matching problem in Java project

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Block Matching problem in Java project

Eva_Fiorinelli
This post was updated on .
Dear all,

I'm trying to match two images of brain arterial with Stephan Saalfeld's block matching plugin in a Java/Eclipse project.
As I want to not display the windows, I call a IJM macro in batch mode in my Java project with runMacroFile method.
When I execute the project, I have this output error :

Plugin or class not found: "ij.plugin.BlockMatching_ExtractPoinRoi"
(java.lang.ClassNotFoundException: ij.plugin.BlockMatching_ExtractPoinRoi)

I passed the argument -Dplugins.dir="myJarDirectory" to the project and I referenced :

blockmatching_-2.1.1.jar
mpicbg_-1.0.1.jar  
mpicbg-1.0.1.jar
and of course ij-1.49v.jar

in the project build path.

In the macro I run  :

setBatchMode(true);

run("Extract Block Matching Correspondences", "source_image=Arterial_1 target_image=Brain_1 layer_scale=1 search_radius=50 block_radius=50 resolution=24 minimal_pmcc_r=0.10 maximal_curvature_ratio=1000 maximal_second_best_r/best_r=1 use_local_smoothness_filter approximate_local_transformation=Affine local_region_sigma=65 maximal_local_displacement=12 maximal_local_displacement=3 export");

setBatchMode(false);

(I also tried without the maximal_local_displacement argument duplication which causes an error in Fiji but I had the same output error)

However the "BlockMatching_ExtractPoinRoi" class is in blockmatching jar in the package mpicbg.ij.plugin, so I don't understand why the project can't find it.
I don't think the error comes from my images because it works in Fiji, and when I run "Extract SIFT Correspondences" in place of block matching, it works well; so I think it comes from my project configuration.

It's certainly a stupid question but I don't see where the problem comes from.
If anyone can help, thank you.

Eva Fiorinelli


Reply | Threaded
Open this post in threaded view
|

Re: Block Matching problem in Java project

Eva_Fiorinelli
This post was updated on .
It just needs to import the source files of ImageJ as it is explained in this tutorial (fourth method) :

http://imagejdocu.tudor.lu/doku.php?id=howto:plugins:the_imagej_eclipse_howto