public class TrackingJobSetting
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
COLORLABEL |
static int |
DARKOBJECT |
double |
itsAnalysisRectBottom |
java.awt.Point |
itsAnalysisRectOrigin |
double |
itsAnalysisRectRight |
java.awt.Color[] |
itsColors |
int |
itsColorThreshold |
ControlDeviceOperator |
itsDeviceController |
java.awt.Rectangle[] |
itsHotRects |
int |
itsIndex |
int[] |
itsLabelBGRColorsi |
float[] |
itsLabelHSVColorsf |
int |
itsObjectSize |
int |
itsPixelThreshold |
java.util.List<TargetCaptureData> |
itsPreviousTCDs |
java.awt.Point |
itsRelOrigin |
int |
itsTrackingType |
int |
itsView |
static int |
kPixelThreshold |
static int |
LIGHTOBJECT |
float |
maxMoveDist |
int |
numObjects |
boolean |
relativeToOrigin |
static int |
Report_LOCATION_FULL |
static int |
Report_LOCATION_ONLY |
static int |
Report_NONE |
static int |
Report_XCOORD |
static int |
Report_YCOORD |
Constructor and Description |
---|
TrackingJobSetting()
Standard constructor for the TrackingJobSetting class.
|
TrackingJobSetting(int itsJobType,
java.awt.Rectangle aRect,
int pThresh,
java.awt.Color cLabel)
Standard constructor for the TrackingJobSetting class.
|
TrackingJobSetting(int itsJobType,
java.awt.Rectangle aRect,
int pThresh,
java.awt.Color cLabel,
int nObjects)
Standard constructor for the TrackingJobSetting class.
|
TrackingJobSetting(int reportType,
java.awt.Rectangle aRect,
int pThresh,
int nObjects)
Standard constructor for the TrackingJobSetting class.
|
TrackingJobSetting(int itsJobType,
java.awt.Rectangle aRect,
int pThresh,
int objSize,
boolean darkObject)
Standard constructor for the TrackingJobSetting class.
|
TrackingJobSetting(int itsJobType,
java.awt.Rectangle aRect,
int pThresh,
int objSize,
boolean darkObject,
TargetDescriptor tDescr,
int nObjects)
Standard constructor for the TrackingJobSetting class.
|
TrackingJobSetting(java.awt.Rectangle aRect,
int pThresh)
Standard constructor for the TrackingJobSetting class.
|
TrackingJobSetting(java.awt.Rectangle aRect,
int pThresh,
java.awt.Color cLabel)
Standard constructor for the TrackingJobSetting class.
|
TrackingJobSetting(java.awt.Rectangle aRect,
int pThresh,
java.awt.Color cLabel,
int nObjects)
Standard constructor for the TrackingJobSetting class.
|
TrackingJobSetting(java.awt.Rectangle aRect,
int pThresh,
int nObjects)
Standard constructor for the TrackingJobSetting class.
|
TrackingJobSetting(java.awt.Rectangle aRect,
int pThresh,
int objSize,
boolean darkObject)
Standard constructor for the TrackingJobSetting class.
|
TrackingJobSetting(java.awt.Rectangle aRect,
int pThresh,
int objSize,
boolean darkObject,
int nObjects)
Standard constructor for the TrackingJobSetting class.
|
TrackingJobSetting(java.awt.Rectangle aRect,
int pThresh,
int objSize,
boolean darkObject,
TargetDescriptor tDescr,
int nObjects)
Standard constructor for the TrackingJobSetting class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
clone the object
|
java.awt.Shape |
getAOI()
returns the analysis area for the tracking job
|
int |
getHTilePosition()
gets the horizontal tile position for the tracking job
|
float |
getObjSizeVar()
gets the acceptable amount of variation in object size
|
int |
getReportType() |
TargetDescriptor |
getTargetDescriptor()
gets the targetDescriptor for the tracking job
|
int |
getVTilePosition()
gets the horizontal tile position for the tracking job
|
void |
list()
returns the TrackingJobSetting as a String
|
void |
projectHotRects(GridSpace3D[] hotZones)
sets the hotzone rectangle for the tracking job
|
static java.awt.Point |
relativeToFrame(java.awt.Point thePoint,
java.awt.Point relPoint)
calculates coordinates relative to another Point
|
java.awt.Point |
relativeToPoint(java.awt.Point thePoint,
java.awt.Point relPoint)
calculates coordinates relative to another Point
|
void |
setAOI(java.awt.Shape aShape)
sets the area of interest
|
void |
setColorLabel(java.awt.Color aColor)
sets the color for the color tracking job
|
void |
setObjSizeVar(float objSizeVar)
sets the acceptable amount of variation in object size
|
void |
setPreviousTCDs(java.util.List<TargetCaptureData> theTargetDataList)
sets the previous TargetData
|
void |
setRelOrigin(java.awt.Point orig)
sets the analysis rectangle for the tracking job
|
void |
setReportType(int itsReportType) |
void |
setTargetDescriptor(TargetDescriptor tDescr)
sets the targetDescriptor for the tracking job
|
void |
setTilePositions(int hPos,
int vPos)
sets the tile position for the tracking job
|
void |
setTrackingType(int tType)
sets the tracking type and type string for the tracking job
|
java.lang.String |
toString()
returns the TrackingJobSetting as a String
|
public static final int Report_NONE
public static final int Report_LOCATION_FULL
public static final int Report_LOCATION_ONLY
public static final int Report_XCOORD
public static final int Report_YCOORD
public static final int DARKOBJECT
public static final int LIGHTOBJECT
public static final int COLORLABEL
public static final int kPixelThreshold
public int itsIndex
public java.awt.Rectangle[] itsHotRects
public int itsTrackingType
public double itsAnalysisRectBottom
public double itsAnalysisRectRight
public java.awt.Point itsAnalysisRectOrigin
public java.awt.Point itsRelOrigin
public int itsColorThreshold
public int itsPixelThreshold
public int itsObjectSize
public int[] itsLabelBGRColorsi
public float[] itsLabelHSVColorsf
public int itsView
public boolean relativeToOrigin
public int numObjects
public java.awt.Color[] itsColors
public java.util.List<TargetCaptureData> itsPreviousTCDs
public float maxMoveDist
public ControlDeviceOperator itsDeviceController
public TrackingJobSetting()
public TrackingJobSetting(java.awt.Rectangle aRect, int pThresh)
aRect
- the Rectangle area of interestpThresh
- the pixel thresholdpublic TrackingJobSetting(java.awt.Rectangle aRect, int pThresh, int nObjects)
aRect
- the Rectangle area of interestpThresh
- the pixel thresholdpublic TrackingJobSetting(int reportType, java.awt.Rectangle aRect, int pThresh, int nObjects)
aRect
- the Rectangle area of interestpThresh
- the pixel thresholdpublic TrackingJobSetting(java.awt.Rectangle aRect, int pThresh, int objSize, boolean darkObject, TargetDescriptor tDescr, int nObjects)
aRect
- the Rectangle area of interestpThresh
- the pixel thresholdobjSize
- the object sizedarkObject
- dark object over light backgroundtDescr
- the target descriptor to usenObjects
- the number of objectspublic TrackingJobSetting(int itsJobType, java.awt.Rectangle aRect, int pThresh, int objSize, boolean darkObject, TargetDescriptor tDescr, int nObjects)
itsJobType
- the job typeaRect
- the Rectangle area of interestpThresh
- the pixel thresholdobjSize
- the object sizedarkObject
- dark object over light backgroundtDescr
- the target descriptor to usenObjects
- the number of objectspublic TrackingJobSetting(java.awt.Rectangle aRect, int pThresh, int objSize, boolean darkObject, int nObjects)
aRect
- the Rectangle area of interestpThresh
- the pixel thresholdobjSize
- the object sizedarkObject
- dark object over light backgroundpublic TrackingJobSetting(java.awt.Rectangle aRect, int pThresh, int objSize, boolean darkObject)
aRect
- the Rectangle area of interestpThresh
- the pixel thresholdobjSize
- the object sizedarkObject
- dark object over light backgroundpublic TrackingJobSetting(int itsJobType, java.awt.Rectangle aRect, int pThresh, int objSize, boolean darkObject)
aRect
- the Rectangle area of interestpThresh
- the pixel thresholdobjSize
- the object sizedarkObject
- dark object over light backgroundpublic TrackingJobSetting(java.awt.Rectangle aRect, int pThresh, java.awt.Color cLabel)
aRect
- the Rectangle area of interestpThresh
- the color thresholdcLabel
- the color to matchpublic TrackingJobSetting(java.awt.Rectangle aRect, int pThresh, java.awt.Color cLabel, int nObjects)
aRect
- the Rectangle area of interestpThresh
- the color thresholdcLabel
- the color to matchpublic TrackingJobSetting(int itsJobType, java.awt.Rectangle aRect, int pThresh, java.awt.Color cLabel)
aRect
- the Rectangle area of interestpThresh
- the color thresholdcLabel
- the color to matchpublic TrackingJobSetting(int itsJobType, java.awt.Rectangle aRect, int pThresh, java.awt.Color cLabel, int nObjects)
aRect
- the Rectangle area of interestpThresh
- the color thresholdcLabel
- the color to matchpublic java.lang.Object clone()
clone
in class java.lang.Object
public void setTrackingType(int tType)
tType
- the tracking typepublic java.awt.Shape getAOI()
public void setAOI(java.awt.Shape aShape) throws java.lang.Exception
aShape
- the Shape defining the area of interestjava.lang.Exception
public void setColorLabel(java.awt.Color aColor)
aColor
- the color to set for the trackjobpublic void setRelOrigin(java.awt.Point orig)
orig
- the origin to use when calculating screen coordinatespublic void projectHotRects(GridSpace3D[] hotZones)
hotZones
- the hot zones for the devicespublic void setTilePositions(int hPos, int vPos)
hPos
- the horizontal position in the tile areavPos
- the vertical position in the tile areapublic int getHTilePosition()
public int getVTilePosition()
public void setTargetDescriptor(TargetDescriptor tDescr)
tDescr
- the target descriptorpublic TargetDescriptor getTargetDescriptor()
public float getObjSizeVar()
public void setObjSizeVar(float objSizeVar)
public void setPreviousTCDs(java.util.List<TargetCaptureData> theTargetDataList) throws java.lang.Exception
theTargetDataList
- the list of captured targets to savejava.lang.Exception
public java.awt.Point relativeToPoint(java.awt.Point thePoint, java.awt.Point relPoint) throws java.lang.Exception
thePoint
- the one pixelrelPoint
- the other pixeljava.lang.Exception
public static java.awt.Point relativeToFrame(java.awt.Point thePoint, java.awt.Point relPoint) throws java.lang.Exception
thePoint
- the one pixelrelPoint
- the other pixeljava.lang.Exception
public int getReportType()
public void setReportType(int itsReportType)
public void list()
public java.lang.String toString()
toString
in class java.lang.Object
RH, 2017