public class TargetCaptureData extends Capture implements java.util.Comparator<TargetCaptureData>
Modifier and Type | Field and Description |
---|---|
boolean[] |
booleanUse |
SGPolygon |
foundTarget |
java.awt.Color |
itsFillColor |
java.awt.Color |
itsFrontColor |
java.awt.Color |
itsLineColor |
java.awt.Color |
itsSurroundColor |
long |
itsTimeStamp |
boolean |
primeUse |
int |
status |
static int |
STATUS_EMPTY |
static int |
STATUS_FILLED |
static int |
STATUS_UPDATE |
dX, dY, dZ
Constructor and Description |
---|
TargetCaptureData()
Standard constructor for the TargetCaptureData class.
|
TargetCaptureData(double x,
double y,
double z,
java.util.Date timeRef)
Standard constructor for the TargetCaptureData class.
|
TargetCaptureData(Pixel centerP)
Standard constructor for the TargetCaptureData class.
|
TargetCaptureData(SGPolygon target)
Standard constructor for the TargetCaptureData class.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(TargetCaptureData t1,
TargetCaptureData t2)
defines sortorder relative to another object
|
Pixel |
getCenterPixel()
get the center of the target
|
java.awt.Shape |
getFrontArea(double len,
float angleDeg,
TargetDescriptor tDescript)
returns the area in front of the animal
|
double |
getMajorAngleDeg()
get the length of the Polygon
|
double |
getMajorAngleRad()
get the length of the Polygon
|
int |
getMaxDiff() |
double |
getMinorAngleDeg()
get the length of the Polygon
|
double |
getMinorAngleRad()
get the length of the Polygon
|
double |
getObjLength()
returns the length of the TargetCaptureData record
|
double |
getObjWidth()
returns the width of the TargetCaptureData record
|
java.awt.Shape |
getSurround(double dist)
returns the area around the animal
|
java.awt.Shape |
getSurroundEllipse(double dist)
returns the area around the animal
|
double |
getTargetArea()
get the length of the Polygon
|
TargetDescriptor |
getTargetDescriptor()
returns whether the TargetCaptureData record was found on its main pass through the image
|
double |
getXYDirectionRad()
get the direction of the target
|
double |
getXYDirectionRad(TargetDescriptor theTDescriptor)
get the direction of the target
|
double |
getXYDirectionToRad(SpatialVector aVec)
get the direction of the target
|
boolean |
isPrimeUse()
returns whether the TargetCaptureData record was found on its main pass through the image
|
void |
list()
lists the info for the pixel
|
void |
setCenterPixel(Pixel thePixel)
set the center of the target
|
void |
setMaxDiff(int maxDiff) |
void |
setObjectMetrics(double orientAngRad,
double objLen,
double objWid)
sets whether the TargetCaptureData record was found on its main pass through the image
|
void |
setObjLength(double objLen)
sets the object length for the target
|
void |
setObjWidth(double objWid)
sets the object length for the target
|
void |
setPrimeUse(boolean pUse)
sets whether the TargetCaptureData record was found on its main pass through the image
|
void |
setTargetDescriptor(TargetDescriptor tD)
sets whether the TargetCaptureData record was found on its main pass through the image
|
void |
setXYDirectionRad(double dirRad)
sets whether the TargetCaptureData record was found on its main pass through the image
|
java.lang.String |
toStringExtended()
returns the info for the pixel as a String
|
applyMove, equals, getMilliSecsBetween, getSecsBetween, getSpeed, getTimeMilliSecs, getTimeRef, getTimeSecs, getTimeString, getTimeString, setTimeMilliSecs, setTimeRef, setTimeSecs, toString
applyVector, applyVector, checkLatLong, clone, copy, cross, dot, equals, getCircleLineIntersections, getCircleLineIntersections, getCircleLinesegmentIntersections, getCircleLinesegmentIntersections, getConnect, getDistanceToLinesegment, getDistanceToLinesegment, getEuclidianDistance, getLength, getLengthSquared, getManhattanDistance, getManhattanLength, getPolarVector, getScaledPoint, getSpatialVector, getSquaredEuclidianDistance, getStraightnessIndex, getVolume, getX, getXY, getXYDeg, getXYDeg, getXYRad, getXYRad, getXZDeg, getXZDeg, getXZRad, getXZRad, getY, getZ, isLatLong, listValues, minus, negate, negateX, negateY, negateZ, plus, remapLatLongToDistanceCoords, reverseDirection, rotate, rotate, rotateXY, rotateXZ, scale, setConnect, setLatLong, setLength, setX, setY, setZ, subtract, times, toFileString, toPoint, toPolarVector, toSpatialVector, unitLength
public static final int STATUS_EMPTY
public static final int STATUS_FILLED
public static final int STATUS_UPDATE
public SGPolygon foundTarget
public long itsTimeStamp
public java.awt.Color itsLineColor
public java.awt.Color itsFillColor
public java.awt.Color itsFrontColor
public java.awt.Color itsSurroundColor
public boolean primeUse
public int status
public boolean[] booleanUse
public TargetCaptureData(double x, double y, double z, java.util.Date timeRef)
x
- the x coordinate for the capturey
- the y coordinate for the capturez
- the z coordinate for the capturetimeRef
- the time refernce for the capturepublic TargetCaptureData(Pixel centerP)
centerP
- the center Pixelpublic TargetCaptureData()
public TargetCaptureData(SGPolygon target) throws java.lang.Exception
target
- the polygonjava.lang.Exception
public TargetDescriptor getTargetDescriptor()
public void setTargetDescriptor(TargetDescriptor tD)
tD
- is the target Descriptorpublic boolean isPrimeUse()
public void setPrimeUse(boolean pUse)
pUse
- is it a valid object on its first pass throgh the image?public void setObjLength(double objLen) throws java.lang.Exception
objLen
- the object length to setjava.lang.Exception
public double getObjLength() throws java.lang.Exception
java.lang.Exception
public void setObjWidth(double objWid) throws java.lang.Exception
objWid
- the object length to setjava.lang.Exception
public double getObjWidth() throws java.lang.Exception
java.lang.Exception
public void setXYDirectionRad(double dirRad) throws java.lang.Exception
dirRad
- the orientation to setjava.lang.Exception
public double getXYDirectionRad() throws java.lang.Exception
java.lang.Exception
public double getXYDirectionRad(TargetDescriptor theTDescriptor) throws java.lang.Exception
theTDescriptor
- the target descriptor, if no direction is available it uses the
targetdescriptor to calculate a new onejava.lang.Exception
public double getXYDirectionToRad(SpatialVector aVec) throws java.lang.Exception
aVec
- the coordinates of the targetjava.lang.Exception
public void setObjectMetrics(double orientAngRad, double objLen, double objWid) throws java.lang.Exception
orientAngRad
- the orientation in rads to useobjLen
- the length of the objectobjWid
- the width of the objectjava.lang.Exception
public int compare(TargetCaptureData t1, TargetCaptureData t2)
compare
in interface java.util.Comparator<TargetCaptureData>
public Pixel getCenterPixel() throws java.lang.Exception
java.lang.Exception
public void setCenterPixel(Pixel thePixel) throws java.lang.Exception
java.lang.Exception
public double getMajorAngleRad() throws java.lang.Exception
java.lang.Exception
public double getMajorAngleDeg() throws java.lang.Exception
java.lang.Exception
public double getMinorAngleRad() throws java.lang.Exception
java.lang.Exception
public double getMinorAngleDeg() throws java.lang.Exception
java.lang.Exception
public double getTargetArea() throws java.lang.Exception
java.lang.Exception
public java.awt.Shape getFrontArea(double len, float angleDeg, TargetDescriptor tDescript) throws java.lang.Exception
len
- the length to addangleDeg
- the angle in degtDescript
- the targetdescriptorjava.lang.Exception
public java.awt.Shape getSurround(double dist) throws java.lang.Exception
dist
- the size of the surroundjava.lang.Exception
public java.awt.Shape getSurroundEllipse(double dist) throws java.lang.Exception
dist
- the size of the surroundjava.lang.Exception
public java.lang.String toStringExtended()
public void list()
list
in class SpatialVector
public int getMaxDiff()
public void setMaxDiff(int maxDiff)
RH, 2017