Commit ad105391 authored by lafabregue's avatar lafabregue

removed otbappwrapping dependency

parent 1c0afdcc
...@@ -17,3 +17,4 @@ local.properties ...@@ -17,3 +17,4 @@ local.properties
.settings/ .settings/
.loadpath .loadpath
*.hprof *.hprof
/target/
...@@ -9,8 +9,6 @@ import javax.swing.JOptionPane; ...@@ -9,8 +9,6 @@ import javax.swing.JOptionPane;
import jsl.io.ImageData; import jsl.io.ImageData;
import jsl.segmentation.Segmenteur; import jsl.segmentation.Segmenteur;
import otbAppWrapping.ExecCommand;
import otbAppWrapping.OtbImage;
/** /**
* *
...@@ -85,11 +83,11 @@ public class SegmenteurMeanShift extends Segmenteur { ...@@ -85,11 +83,11 @@ public class SegmenteurMeanShift extends Segmenteur {
.toString(1000 + (int) (Math.random() * ((10000 - 1000) + 1))); .toString(1000 + (int) (Math.random() * ((10000 - 1000) + 1)));
try { try {
ExecCommand.SegmentationMeanShift(this.path, name + "_seg.tif", (int)this.spatialRadius, this.rangeRadius, (int)this.minRegionSize); // ExecCommand.SegmentationMeanShift(this.path, name + "_seg.tif", (int)this.spatialRadius, this.rangeRadius, (int)this.minRegionSize);
double data[][][] = null; double data[][][] = null;
data = new OtbImage().loadImage("./" + name + "_seg.tif", // data = new OtbImage().loadImage("./" + name + "_seg.tif",
image.getXDim(), image.getYDim(), 1); // image.getXDim(), image.getYDim(), 1);
IntegerImage imageLabel = new IntegerImage(image.getXDim(), IntegerImage imageLabel = new IntegerImage(image.getXDim(),
image.getYDim(), 1, 1, 1); image.getYDim(), 1, 1, 1);
......
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