Package boofcv.alg.sfm.overhead
Class OverheadView<T extends ImageBase<T>>
java.lang.Object
boofcv.alg.sfm.overhead.OverheadView<T>
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:
- When rendering the overhead image objects to the left will appear on the right and the other way around. This is an artifact that in image's it's standard for +y to point down (clock-wise of +x), while on 2D maps the standard is +y being counter-clock-wise of +x.
-
Field Summary
Modifier and TypeFieldDescriptiondouble
Size of each cell in the overhead image in world units.double
X-coordinate of camera center in the overhead image in world units.double
Y-coordinate of camera center in the overhead image in world units.Image containing the overhead view. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
getImage()
void
setCellSize
(double cellSize) void
setCenterX
(double centerX) void
setCenterY
(double centerY) void
-
Field Details
-
image
Image containing the overhead view. -
centerX
public double centerXX-coordinate of camera center in the overhead image in world units. -
centerY
public double centerYY-coordinate of camera center in the overhead image in world units. -
cellSize
public double cellSizeSize of each cell in the overhead image in world units.
-
-
Constructor Details
-
OverheadView
public OverheadView() -
OverheadView
-
-
Method Details
-
getImage
-
setImage
-
getCenterX
public double getCenterX() -
setCenterX
public void setCenterX(double centerX) -
getCenterY
public double getCenterY() -
setCenterY
public void setCenterY(double centerY) -
getCellSize
public double getCellSize() -
setCellSize
public void setCellSize(double cellSize)
-