Replace classes with new classabstraction classes

This commit is contained in:
Banks Troutman
2019-11-23 11:55:20 -05:00
parent 4bcae6590f
commit 4dc86c6f25
64 changed files with 396 additions and 2066 deletions

View File

@@ -0,0 +1,5 @@
package com.chameleonvision.vision.enums;
public enum CalibrationMode {
None,Single,Dual
}

View File

@@ -0,0 +1,14 @@
package com.chameleonvision.vision.enums;
public enum ImageFlipMode {
NONE(Integer.MIN_VALUE),
VERTICAL(1),
HORIZONTAL(0),
BOTH(-1);
public final int value;
ImageFlipMode(int value) {
this.value = value;
}
}

View File

@@ -0,0 +1,16 @@
package com.chameleonvision.vision.enums;
import org.opencv.core.Core;
public enum ImageRotation {
DEG_0(-1),
DEG_90(Core.ROTATE_90_CLOCKWISE),
DEG_180(Core.ROTATE_180),
DEG_270(Core.ROTATE_90_COUNTERCLOCKWISE);
public final int value;
ImageRotation(int value) {
this.value = value;
}
}

View File

@@ -0,0 +1,7 @@
package com.chameleonvision.vision.enums;
public enum Orientation {
//TODO: (low) add 90 and 270 deg rotation?
Normal,
Inverted;
}

View File

@@ -0,0 +1,5 @@
package com.chameleonvision.vision.enums;
public enum SortMode {
Largest,Smallest,Highest,Lowest,Rightmost,Leftmost,Centermost
}

View File

@@ -0,0 +1,14 @@
package com.chameleonvision.vision.enums;
public enum StreamDivisor {
NONE(1),
HALF(2),
QUARTER(4),
SIXTH(6);
public final Integer value;
StreamDivisor(int value) {
this.value = value;
}
}

View File

@@ -0,0 +1,6 @@
package com.chameleonvision.vision.enums;
public enum TargetGroup {
Single,
Dual
}

View File

@@ -0,0 +1,5 @@
package com.chameleonvision.vision.enums;
public enum TargetIntersection {
None,Up,Down,Left,Right
}