Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
pangea_survey::CameraPlane Class Reference

#include <camera_projection.h>

Public Member Functions

 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.

Private Attributes

cv::Matx33d rays_
cv::Matx33d inverseRays_

Detailed Description

Definition at line 49 of file camera_projection.h.

Constructor & Destructor Documentation

◆ 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]fxHorizontal focal length in pixels.
[in]fyVertical focal length in pixels.
[in]cxPrincipal-point x coordinate in pixels.
[in]cyPrincipal-point y coordinate in pixels.
[in]rollBody roll in degrees.
[in]pitchBody pitch in degrees.
[in]yawBody yaw in degrees.
[in]mountRollCamera mount roll in degrees.
[in]mountPitchCamera mount pitch in degrees.
[in]mountYawCamera mount yaw in degrees.
Exceptions
std::runtime_errorIf intrinsics or angles are nonfinite, or focal length is invalid.

Definition at line 66 of file camera_projection.h.

Member Function Documentation

◆ crop()

void pangea_survey::CameraPlane::crop ( int inset)
inline

Shift the principal point after removing equal borders from the image.

Parameters
[in]insetNumber 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]columnImage column in pixels.
[in]rowImage row in pixels.
[in]heightCamera-to-plane distance in metres.
Returns
Local ground point in metres.
Exceptions
std::runtime_errorIf 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]heightCamera-to-plane distance in metres.
Returns
3x3 ground-to-pixel projective transform.
Exceptions
std::runtime_errorIf the plane height is invalid.

Definition at line 98 of file camera_projection.h.

Field Documentation

◆ inverseRays_

cv::Matx33d pangea_survey::CameraPlane::inverseRays_
private

Definition at line 50 of file camera_projection.h.

◆ rays_

cv::Matx33d pangea_survey::CameraPlane::rays_
private

Definition at line 50 of file camera_projection.h.


The documentation for this class was generated from the following file: