This class implements functions for vanishing projections.
More...
This class implements functions for vanishing projections.
◆ perspectiveParallelLines()
Determines the largest subset of perspectively parallel lines from a set of given infinite lines.
The lines may be absolute parallel or may have a common vanishing point.
- Parameters
-
lines | The lines from which the largest group of (perspectively) parallel lines will be determined |
projectiveParallelAngle | The maximal angle between two projected lines (actually the given lines interpreted in the coordinate system of the frame) count as parallel, in radian with range [0, PI/2) |
orientationError | The expected orientation error each provided line can have e.g., due to measurement/detection inaccuracies, in radian with range [0, PI/2) |
maximalAngle | The maximal angle between two lines so that they still count as perspectively parallel, in radian with range (max(orientationError, projectiveParallelAngle), PI/2) |
- Returns
- The indices of the requested lines out of the given group of lines
◆ planeNormal()
static bool Ocean::Geometry::VanishingProjection::planeNormal |
( |
const PinholeCamera & |
pinholeCamera, |
|
|
const Vector2 |
parallelogramPoints[4], |
|
|
const bool |
undistortImagePoints, |
|
|
Vector3 & |
normal |
|
) |
| |
|
static |
Calculates the normal of a plane that is determined by four given image points defining a parallelogram and all lying on the same 3D plane.
The resulting normal is defined in the coordinate system of the camera which is located in the origin and locking along the negative z-axis, with y-axis as up vector.
- Parameters
-
pinholeCamera | The pinhole camera profile to be applied |
parallelogramPoints | The four corners of the parallelogram visible in the camera frame |
undistortImagePoints | True, so that the given image points will be undistorted before the normal is calculated |
normal | Resulting normal of the plane |
- Returns
- True, if succeeded
◆ vanishingLine()
static bool Ocean::Geometry::VanishingProjection::vanishingLine |
( |
const Vector2 |
parallelogramPoints[4], |
|
|
Line2 & |
line |
|
) |
| |
|
static |
Determines the vanishing line for four given (undistorted) image points defining a parallelogram that lies in a 3D plane.
- Parameters
-
parallelogramPoints | Four (undistorted) image points defining a parallelogram |
line | Resulting vanishing line |
- Returns
- True, if succeeded
The documentation for this class was generated from the following file: