Commit ad105391 authored by lafabregue's avatar lafabregue

removed otbappwrapping dependency

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