Commit 5a818c97 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

jcuda testing

parent ce6f3306
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<dependency> <dependency>
<groupId>org.jcuda</groupId> <groupId>org.jcuda</groupId>
<artifactId>jcuda</artifactId> <artifactId>jcuda</artifactId>
<version>0.9.2</version> <version>10.0.0</version>
</dependency> </dependency>
<!-- <!--
As of 2018/09/11 TF for GPU on Maven supports CUDA 9.0 (vs latest 9.2) As of 2018/09/11 TF for GPU on Maven supports CUDA 9.0 (vs latest 9.2)
......
...@@ -46,6 +46,7 @@ import org.slf4j.Logger; ...@@ -46,6 +46,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import ij.ImagePlus; import ij.ImagePlus;
import ij.io.FileInfo;
import ij.process.FloatProcessor; import ij.process.FloatProcessor;
import ij.process.ImageProcessor; import ij.process.ImageProcessor;
import loci.common.ByteArrayHandle; import loci.common.ByteArrayHandle;
...@@ -253,7 +254,19 @@ public class ImagejJp4Tiff { ...@@ -253,7 +254,19 @@ public class ImagejJp4Tiff {
imp.setProperty(TELEMETRY_PREFIX+key, telemetryMap.get(key)); imp.setProperty(TELEMETRY_PREFIX+key, telemetryMap.get(key));
} }
} }
FileInfo fi = imp.getFileInfo();
String dir = imageName.substring(0, imageName.lastIndexOf("/")+1);
fi.directory = dir;
fi.fileName = imageName;
imp.setFileInfo(fi);
encodeProperiesToInfo(imp); encodeProperiesToInfo(imp);
System.out.println("");
Location.mapFile(content_fileName, null); Location.mapFile(content_fileName, null);
return imp; return imp;
} }
......
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