Loading...
Searching...
No Matches
#include <camera_projection.h>
|
| | CameraPlane (double fx, double fy, double cx, double cy, double roll, double pitch, double yaw, double mountRoll=0, double mountPitch=0, double mountYaw=0) |
| | Cache forward and inverse pinhole transforms for one camera pose.
|
| cv::Point2d | ground (double column, double row, double height) const |
| | Intersect one delivered-image pixel ray with a horizontal ground plane.
|
| cv::Matx33d | groundToPixel (double height) const |
| | Return a homography from local ground coordinates to image pixels.
|
| void | crop (int inset) |
| | Shift the principal point after removing equal borders from the image.
|
Definition at line 49 of file camera_projection.h.
◆ CameraPlane()
| pangea_survey::CameraPlane::CameraPlane |
( |
double | fx, |
|
|
double | fy, |
|
|
double | cx, |
|
|
double | cy, |
|
|
double | roll, |
|
|
double | pitch, |
|
|
double | yaw, |
|
|
double | mountRoll = 0, |
|
|
double | mountPitch = 0, |
|
|
double | mountYaw = 0 ) |
|
inline |
Cache forward and inverse pinhole transforms for one camera pose.
- Parameters
-
| [in] | fx | Horizontal focal length in pixels. |
| [in] | fy | Vertical focal length in pixels. |
| [in] | cx | Principal-point x coordinate in pixels. |
| [in] | cy | Principal-point y coordinate in pixels. |
| [in] | roll | Body roll in degrees. |
| [in] | pitch | Body pitch in degrees. |
| [in] | yaw | Body yaw in degrees. |
| [in] | mountRoll | Camera mount roll in degrees. |
| [in] | mountPitch | Camera mount pitch in degrees. |
| [in] | mountYaw | Camera mount yaw in degrees. |
- Exceptions
-
| std::runtime_error | If intrinsics or angles are nonfinite, or focal length is invalid. |
Definition at line 66 of file camera_projection.h.
◆ crop()
| void pangea_survey::CameraPlane::crop |
( |
int | inset | ) |
|
|
inline |
Shift the principal point after removing equal borders from the image.
- Parameters
-
| [in] | inset | Number of pixels removed from each edge. |
Definition at line 107 of file camera_projection.h.
◆ ground()
| cv::Point2d pangea_survey::CameraPlane::ground |
( |
double | column, |
|
|
double | row, |
|
|
double | height ) const |
|
inline |
Intersect one delivered-image pixel ray with a horizontal ground plane.
- Parameters
-
| [in] | column | Image column in pixels. |
| [in] | row | Image row in pixels. |
| [in] | height | Camera-to-plane distance in metres. |
- Returns
- Local ground point in metres.
- Exceptions
-
| std::runtime_error | If the ray is invalid or too close to the horizon. |
Definition at line 84 of file camera_projection.h.
◆ groundToPixel()
| cv::Matx33d pangea_survey::CameraPlane::groundToPixel |
( |
double | height | ) |
const |
|
inline |
Return a homography from local ground coordinates to image pixels.
- Parameters
-
| [in] | height | Camera-to-plane distance in metres. |
- Returns
- 3x3 ground-to-pixel projective transform.
- Exceptions
-
| std::runtime_error | If the plane height is invalid. |
Definition at line 98 of file camera_projection.h.
◆ inverseRays_
| cv::Matx33d pangea_survey::CameraPlane::inverseRays_ |
|
private |
◆ rays_
| cv::Matx33d pangea_survey::CameraPlane::rays_ |
|
private |
The documentation for this class was generated from the following file: