Skip to content
Snippets Groups Projects
Commit d7ceacc2 authored by Daniel Felipe González Obando's avatar Daniel Felipe González Obando
Browse files

loading class for Point2i from icy vecmath

parent 49a276f5
No related branches found
No related tags found
No related merge requests found
......@@ -10,13 +10,22 @@ import plugins.adufour.ezplug.EzVarSequence;
public class SLIC extends EzPlug {
private EzVarSequence inSequence;
private EzVarInteger inSPSize;
private EzVarDouble inSPReg;
private EzVarBoolean inIsROIOutput;
private EzVarSequence inSequence;
private EzVarInteger inSPSize;
private EzVarDouble inSPReg;
private EzVarBoolean inIsROIOutput;
@Override
protected void initialize() {
try {
Class.forName("javax.vecmath.Point2i");
Class.forName("javax.vecmath.Point3d");
Class.forName("javax.vecmath.Point3i");
Class.forName("javax.vecmath.Vector3d");
} catch (ClassNotFoundException e) {
System.err.println("Could not load proper vecmath version: " + e);
e.printStackTrace();
}
inSequence = new EzVarSequence("Sequence");
inSPSize = new EzVarInteger("Superpixel size");
inSPReg = new EzVarDouble("Superpixels regularity");
......@@ -52,7 +61,7 @@ public class SLIC extends EzPlug {
MessageDialog.ERROR_MESSAGE);
return;
}
endTime = System.currentTimeMillis();
procTime = endTime - startTime;
MessageDialog.showDialog(String.format("SLIC finished in %d milliseconds", procTime));
......
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