public abstract class CreateSyntheticOverheadView<T extends boofcv.struct.image.ImageBase<T>>
extends java.lang.Object
Converts a camera image into an overhead orthogonal view with known metric properties given a known transform from the
plane to camera. This will only produce a valid orthogonal view when the
surface being viewed is entirely planar, non-planar objects are heavily distorted. See OverheadView
for more details.
Usage Notes:
Se3_F64 which describes the transform from the
plane to the camera.
Implementation Notes:
The transform is precomputed and stored in an array which is w*h*2*8 bytes, where (w,h) is the size of the overhead
image.
| Modifier and Type | Field and Description |
|---|---|
protected georegression.struct.point.Point2D_F32[] |
mapPixels |
protected int |
overheadHeight |
protected int |
overheadWidth |
| Constructor and Description |
|---|
CreateSyntheticOverheadView() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(boofcv.struct.calib.CameraPinholeBrown intrinsic,
georegression.struct.se.Se3_F64 planeToCamera,
double centerX,
double centerY,
double cellSize,
int overheadWidth,
int overheadHeight)
Specifies camera configurations.
|
georegression.struct.point.Point2D_F32 |
getOverheadToPixel(int x,
int y)
Returns corresponding pixel to pixel coordinate in overhead image
|
abstract void |
process(T input,
T output)
Computes overhead view of input image.
|
protected int overheadWidth
protected int overheadHeight
protected georegression.struct.point.Point2D_F32[] mapPixels
public void configure(boofcv.struct.calib.CameraPinholeBrown intrinsic,
georegression.struct.se.Se3_F64 planeToCamera,
double centerX,
double centerY,
double cellSize,
int overheadWidth,
int overheadHeight)
intrinsic - Intrinsic camera parametersplaneToCamera - Transform from the plane to the camera. This is the extrinsic parameters.centerX - X-coordinate of camera center in the overhead image in world units.centerY - Y-coordinate of camera center in the overhead image in world units.cellSize - Size of each cell in the overhead image in world units.overheadWidth - Number of columns in overhead imageoverheadHeight - Number of rows in overhead imagepublic georegression.struct.point.Point2D_F32 getOverheadToPixel(int x,
int y)
x - overhead pixel x-coordinatey - overhead pixel y-coordinate