public class FixedAngleCameraDistanceEstimator extends java.lang.Object implements DistanceEstimator
Constructor and Description |
---|
FixedAngleCameraDistanceEstimator(double targetHeight,
double cameraHeight,
double cameraMountingAngle)
Creates an instance of a fixed angle distance estimator.
|
Modifier and Type | Method and Description |
---|---|
double |
getDistance(Target target)
Get the distance to the target from the camera.
|
public FixedAngleCameraDistanceEstimator(double targetHeight, double cameraHeight, double cameraMountingAngle)
targetHeight
- The height of the target off the ground.cameraHeight
- The height of the camera off the ground.cameraMountingAngle
- The angle of the camera in degrees.public double getDistance(Target target)
DistanceEstimator
getDistance
in interface DistanceEstimator
target
- The target.