public class CameraPlaneProjection
extends java.lang.Object
CreateSyntheticOverheadView for details about reference frames and how the plane is defined.| Constructor and Description |
|---|
CameraPlaneProjection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
normalToPlane(double normX,
double normY,
georegression.struct.point.Point2D_F64 plane)
Given a pixel in normalized coordinates, find the point on the plane.
|
boolean |
pixelToPlane(double pixelX,
double pixelY,
georegression.struct.point.Point2D_F64 plane)
Given a pixel, find the point on the plane.
|
boolean |
planeToNormalized(double pointX,
double pointY,
georegression.struct.point.Point2D_F64 normalized)
Given a point on the plane find the normalized image coordinate
|
boolean |
planeToPixel(double pointX,
double pointY,
georegression.struct.point.Point2D_F64 pixel)
Given a point on the plane find the pixel in the image.
|
void |
setConfiguration(georegression.struct.se.Se3_F64 planeToCamera,
boofcv.struct.calib.IntrinsicParameters intrinsic)
Configures the camera's intrinsic and extrinsic parameters
|
void |
setIntrinsic(boofcv.struct.calib.IntrinsicParameters intrinsic)
Configures the camera's intrinsic parameters
|
void |
setPlaneToCamera(georegression.struct.se.Se3_F64 planeToCamera,
boolean computeInverse)
Specifies camera's extrinsic parameters.
|
public void setConfiguration(georegression.struct.se.Se3_F64 planeToCamera,
boofcv.struct.calib.IntrinsicParameters intrinsic)
planeToCamera - Transform from the plane to the cameraintrinsic - Pixel to normalized image coordinatespublic void setIntrinsic(boofcv.struct.calib.IntrinsicParameters intrinsic)
intrinsic - Intrinsic camera parameterspublic void setPlaneToCamera(georegression.struct.se.Se3_F64 planeToCamera,
boolean computeInverse)
planeToCamera - Transform from plane to camera reference framecomputeInverse - Set to true if pixelToPlane is going to be called. performs extra calculationpublic boolean planeToPixel(double pointX,
double pointY,
georegression.struct.point.Point2D_F64 pixel)
pointX - (input) Point on the plane, x-axispointY - (input) Point on the plane, y-axispixel - (output) Pixel in the imagepublic boolean planeToNormalized(double pointX,
double pointY,
georegression.struct.point.Point2D_F64 normalized)
pointX - (input) Point on the plane, x-axispointY - (input) Point on the plane, y-axisnormalized - (output) Normalized image coordinate of pixelpublic boolean pixelToPlane(double pixelX,
double pixelY,
georegression.struct.point.Point2D_F64 plane)
setPlaneToCamera(georegression.struct.se.Se3_F64, boolean)pixelX - (input) Pixel in the image, x-axispixelY - (input) Pixel in the image, y-axisplane - (output) Point on the plane.public boolean normalToPlane(double normX,
double normY,
georegression.struct.point.Point2D_F64 plane)
setPlaneToCamera(georegression.struct.se.Se3_F64, boolean)normX - (input) Image pixel in normalized coordinates, x-axisnormY - (input) Image pixel in normalized coordinates, y-axisplane - (output) Point on the plane.