public class OverheadView<T extends boofcv.struct.image.ImageBase>
extends java.lang.Object
Data structure for an overhead orthogonal view with known metric properties. Each pixel in the overhead view corresponds to a square of known size and location in the world. The each size of the square regions is specified by cellSize and the origin by (centerX,centerY).
The overhead +x axis corresponds to the world's +z axis and the image's +y axis corresponds to the world's -x axis. The user specify the origin by changing centerX and centerY parameters. It is common to set centerX = 0 , centerY = output.height*cellSize/2.0.
overhead pixels to world coordinates: (x,y) = (x_p,y_p)*cellSize - (centerX,centerY)
world coordinates to overhead pixels: (x_p,y_p) = [(x,y) - (centerX,centerY)]/cellSize
Notes:
| Modifier and Type | Field and Description |
|---|---|
double |
cellSize
Size of each cell in the overhead image in world units.
|
double |
centerX
X-coordinate of camera center in the overhead image in world units.
|
double |
centerY
Y-coordinate of camera center in the overhead image in world units.
|
T |
image
Image containing the overhead view.
|
| Constructor and Description |
|---|
OverheadView() |
OverheadView(T image,
double centerX,
double centerY,
double cellSize) |
| Modifier and Type | Method and Description |
|---|---|
double |
getCellSize() |
double |
getCenterX() |
double |
getCenterY() |
T |
getImage() |
void |
setCellSize(double cellSize) |
void |
setCenterX(double centerX) |
void |
setCenterY(double centerY) |
void |
setImage(T image) |
public T extends boofcv.struct.image.ImageBase image
public double centerX
public double centerY
public double cellSize
public OverheadView()
public OverheadView(T image, double centerX, double centerY, double cellSize)
public T getImage()
public void setImage(T image)
public double getCenterX()
public void setCenterX(double centerX)
public double getCenterY()
public void setCenterY(double centerY)
public double getCellSize()
public void setCellSize(double cellSize)