Package videoRangePanel
Class VRHorzCalcMethod
java.lang.Object
videoRangePanel.VRHorzCalcMethod
- Direct Known Subclasses:
RoundEarthMethod
Method for measuring the distance to an animal based on the pitch and height of an observer.
- Author:
- Doug Gillespie, Jamie Macaulay
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract RangeDialogPanel
Get the swing based pane for the methodabstract double
getAngle
(double height, double range) Converts a range into an angle below the horizon.abstract double
getHorizonDistance
(double height) Calculate the distance to the horizon from a given height.abstract double
getRange
(double height, double angle) Converts a height and an angle below the horizon to a distance in metres.abstract SettingsPane<?>
Get the FX based settings pane for the methodabstract double
psiFromRange
(double height, double range) Get the pitch of the camera from the height and range to target.abstract double
rangeFromPsi
(double height, double psi) Get the range from the pitch of the camera and camera height.
-
Constructor Details
-
VRHorzCalcMethod
public VRHorzCalcMethod()
-
-
Method Details
-
getRange
public abstract double getRange(double height, double angle) Converts a height and an angle below the horizon to a distance in metres.- Parameters:
height
- platform height (metres)angle
- angle below the horizon (Radians)- Returns:
- distance in metres.
-
getAngle
public abstract double getAngle(double height, double range) Converts a range into an angle below the horizon.Or returns -1 if the range is beyond the horizon.
- Parameters:
height
- platform height (metres)range
- range to object.- Returns:
- angle in Radians.
-
dialogPanel
Get the swing based pane for the method- Returns:
- pane for changing settings
-
getRangeMethodPane
Get the FX based settings pane for the method- Returns:
- pane for changing settings.
-
getHorizonDistance
public abstract double getHorizonDistance(double height) Calculate the distance to the horizon from a given height.- Parameters:
height
-- Returns:
- distnace to horizon in metres.
-
rangeFromPsi
public abstract double rangeFromPsi(double height, double psi) Get the range from the pitch of the camera and camera height. Note that the range is the distance from the camera to the animal.- Parameters:
height
- - height of the camerapsi
- - the angle of the camera in radians. 0-camera pointing downwards (i.e same direction as g). 90 degrees= camera point perpendicular to direction of g;- Returns:
- the rane in meters
-
psiFromRange
public abstract double psiFromRange(double height, double range) Get the pitch of the camera from the height and range to target.- Parameters:
height
- -height of the camerarange
- -distance to the target from the camera.- Returns:
- psi- the angle of the camera in radians. 0-camera pointing downwards (i.e same direction as g). 90 degrees= camera point perpendicular to direction of g;
-