|
SMACC2
|
#include <geometry.hpp>

Public Member Functions | |
| cv::Vec3d | rayDirection (double u, double v) const |
| std::optional< cv::Point2d > | project (const cv::Vec3d &point) const |
| std::optional< cv::Vec3d > | pixelToPlane (double u, double v, double z) const |
| cv::Matx33d | imageToPlaneHomography (double z) const |
Public Attributes | |
| double | fx = 1.0 |
| double | fy = 1.0 |
| double | cx = 0.0 |
| double | cy = 0.0 |
| cv::Matx33d | rotation = cv::Matx33d::eye() |
| cv::Vec3d | position {0.0, 0.0, 0.0} |
Definition at line 26 of file geometry.hpp.
| cv::Matx33d cl_rgb::PinholeCamera::imageToPlaneHomography | ( | double | z | ) | const |
Definition at line 50 of file geometry.cpp.
References cx, cy, fx, fy, position, and rotation.
Referenced by cl_rgb::findBlobs(), and cl_rgb::tableRegionMask().

| std::optional< cv::Vec3d > cl_rgb::PinholeCamera::pixelToPlane | ( | double | u, |
| double | v, | ||
| double | z ) const |
Definition at line 35 of file geometry.cpp.
References position, and rayDirection().
Referenced by cl_rgb::findBlobs(), cl_rgb::fitBoxOnTable(), and cl_rgb::CpTablePlane::pointUnderPixel().


| std::optional< cv::Point2d > cl_rgb::PinholeCamera::project | ( | const cv::Vec3d & | point | ) | const |
Definition at line 25 of file geometry.cpp.
References cx, cy, fx, fy, position, and rotation.
Referenced by cl_rgb::anonymous_namespace{box_fit.cpp}::hullArea(), and cl_rgb::anonymous_namespace{box_fit.cpp}::outline().

| cv::Vec3d cl_rgb::PinholeCamera::rayDirection | ( | double | u, |
| double | v ) const |
| double cl_rgb::PinholeCamera::cx = 0.0 |
Definition at line 30 of file geometry.hpp.
Referenced by imageToPlaneHomography(), cl_rgb::CpCamera::model(), project(), and rayDirection().
| double cl_rgb::PinholeCamera::cy = 0.0 |
Definition at line 31 of file geometry.hpp.
Referenced by imageToPlaneHomography(), cl_rgb::CpCamera::model(), project(), and rayDirection().
| double cl_rgb::PinholeCamera::fx = 1.0 |
Definition at line 28 of file geometry.hpp.
Referenced by imageToPlaneHomography(), cl_rgb::CpCamera::model(), project(), and rayDirection().
| double cl_rgb::PinholeCamera::fy = 1.0 |
Definition at line 29 of file geometry.hpp.
Referenced by imageToPlaneHomography(), cl_rgb::CpCamera::model(), project(), and rayDirection().
| cv::Vec3d cl_rgb::PinholeCamera::position {0.0, 0.0, 0.0} |
Definition at line 33 of file geometry.hpp.
Referenced by cl_rgb::findBlobs(), imageToPlaneHomography(), cl_rgb::CpCamera::model(), pixelToPlane(), project(), and cl_rgb::tableRegionMask().
| cv::Matx33d cl_rgb::PinholeCamera::rotation = cv::Matx33d::eye() |
Definition at line 32 of file geometry.hpp.
Referenced by imageToPlaneHomography(), cl_rgb::CpCamera::model(), project(), and rayDirection().