Commit f83fecdb authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

+ test for jcuda

parent 885f44ef
...@@ -4724,9 +4724,20 @@ private Panel panel1, ...@@ -4724,9 +4724,20 @@ private Panel panel1,
/* ======================================================================== */ /* ======================================================================== */
} else if (label.equals("JCUDA TEST")) { } else if (label.equals("JCUDA TEST")) {
System.out.println("JCUDA TEST");
JCuda_ImageJ_Example_Plugin jcuda = new JCuda_ImageJ_Example_Plugin(); ImagePlus impl = WindowManager.getCurrentImage();
//jcuda.run(); if (impl!=null) {
ImageProcessor impr = impl.getProcessor();
JCuda_ImageJ_Example_Plugin jcuda = new JCuda_ImageJ_Example_Plugin();
jcuda.setup(null,impl);
jcuda.run(impr);
}else {
System.out.println("Missing the current image. Open one.");
}
return; return;
/* ======================================================================== */ /* ======================================================================== */
} else if (label.equals("TF TEST")) { } else if (label.equals("TF TEST")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment