Package videoRangePanel
Class VRMeasurement
java.lang.Object
videoRangePanel.VRMeasurement
- All Implemented Interfaces:
Serializable
,Cloneable
Class to store information on loclaisations using an image. All angles are stored in degrees.
- Author:
- Doug Gillespie, modified by Jamie Macaulay.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptiondouble
difference between image bearing and bearing to animal.Animal point on the imageCamera calibration data.User comment on the picture.double
int
The estimated group sizeThe height of the cameraint
The integer number of the animal being measured from a single image.Bearing of image in degrees.image bearing error in degrees.Location the image was taken from.Image Pitch in degrees.Image pitch error in degrees.Image tilt in degrees.Image tilt error in degrees.Time the image was taken (note this can be null, e.g.Bearing of object (animal) degrees.The error in the bearing to the animal in degrees.Distance to object (animal)- flat along surface, not from camera.The estimated distance error.Location of the animal.Pitch of object (animal) degrees.The error in the pitch angle in degrees.double
The range difference that one pixel of error makes in meters.The area of the polygon in meters squared.The area of the polygon in pixels.Point[]
A list of points describing a shape on the image.LatLong[]
List of latitude and longitude corresponding to areaVertex.The perimeter of the polygon in meters.The perimeter of the polygon in pixels.The method used to calculated range from pitch and height.The overall method used. -
Constructor Summary
ConstructorDescriptionVRMeasurement
(Point animalPoint) Constructor for measurments which know the animals bearing, pitch and the roll of the image.VRMeasurement
(Point shorePoint, Point animalPoint) Constructor for shore based measurements.VRMeasurement
(Point horizonPoint1, Point horizonPoint2, Point animalPoint) Constructor for measurements from the horizon. -
Method Summary
Modifier and TypeMethodDescriptionclone()
double
getAnimalAngleDegrees
(VRCalibrationData vrCalibrationData) Returns the horizontal angle of the animal in degrees.double
getAnimalAngleRadians
(VRCalibrationData vrCalibrationData) Returns the horizontal angle of the animal in radians.
-
Field Details
-
horizonPoint
-
distancePixels
public double distancePixels -
imageAnimal
public int imageAnimalThe integer number of the animal being measured from a single image. -
groupSize
public int groupSizeThe estimated group size -
animalPoint
Animal point on the image -
polygonArea
A list of points describing a shape on the image. Minimum must be three elements. This can be null. -
polygonLatLon
List of latitude and longitude corresponding to areaVertex. -
polyAreaPix
The area of the polygon in pixels. Null if no shape defined. -
polyAreaM
The area of the polygon in meters squared. Null if no shape defined. -
polyPerimPix
The perimeter of the polygon in pixels. Null if no shape defined. -
polyPerimM
The perimeter of the polygon in meters. Null if no shape defined. -
locDistance
Distance to object (animal)- flat along surface, not from camera. -
locDistanceError
The estimated distance error. -
locBearing
Bearing of object (animal) degrees. -
locBearingError
The error in the bearing to the animal in degrees. -
locPitch
Pitch of object (animal) degrees. -
locPitchError
The error in the pitch angle in degrees. -
locLatLong
Location of the animal. This requires a heading, distance and image origin. -
imageTime
Time the image was taken (note this can be null, e.g. for a pasted image). -
imageBearing
Bearing of image in degrees. -
imageBearingErr
image bearing error in degrees. -
imagePitch
Image Pitch in degrees. -
imagePitchErr
Image pitch error in degrees. -
imageTilt
Image tilt in degrees. -
imageTiltErr
Image tilt error in degrees. -
imageOrigin
Location the image was taken from. -
pixelAccuracy
public double pixelAccuracyThe range difference that one pixel of error makes in meters. -
imageName
-
angleCorrection
public double angleCorrectiondifference between image bearing and bearing to animal. -
comment
User comment on the picture. -
calibrationData
Camera calibration data. Used in horizona and IMU methods. -
heightData
The height of the camera -
rangeMethod
The method used to calculated range from pitch and height. -
vrMethod
The overall method used.
-
-
Constructor Details
-
VRMeasurement
Constructor for measurements from the horizon.- Parameters:
horizonPoint1
- first horizon pointhorizonPoint2
- second horizon pointanimalPoint
- clicked animal point.
-
VRMeasurement
Constructor for shore based measurements.- Parameters:
shorePoint
- clicked shore point on image.animalPoint
- clicked animal point on image.
-
VRMeasurement
Constructor for measurments which know the animals bearing, pitch and the roll of the image.- Parameters:
animalPoint
-pitchPixels
-bearingPixels
-
-
VRMeasurement
public VRMeasurement()
-
-
Method Details
-
getAnimalAngleDegrees
Returns the horizontal angle of the animal in degrees.- Parameters:
vrCalibrationData
- : calibration data.- Returns:
- angle in degrees based on measured distance in pixels and . given calibration data.
-
getAnimalAngleRadians
Returns the horizontal angle of the animal in radians.- Parameters:
vrCalibrationData
- : calibration data.- Returns:
- angle in degrees based on measured distance in pixels and given calibration data.
-
getHoverText
-
clone
-