![]() |
MSCEqF 1.0
Multi State Constraint Equivariant Filter for visual inertial navigation
|
This class represnt the base class for any pinhole camera type. More...
#include <camera.hpp>
Public Member Functions | |
void | undistort (std::vector< Eigen::Vector2f > &uv, const bool &normalize=false) |
Undistort given distorted point in Eigen format (std::vector<Eigen::Vector2f>) | |
virtual void | undistort (std::vector< cv::Point2f > &uv_cv, const bool &normalize=false)=0 |
Undistort given distorted point in OpenCV format (std::vector<cv::Point2f>) | |
virtual void | undistortImage (const cv::Mat &image, cv::Mat &image_undistorted)=0 |
Undistort given image in openCV format (cv::Mat) | |
void | normalize (std::vector< Eigen::Vector2f > &uv) |
Normalize multiple features uv coordinates in Eigen format (std::vector<Eigen::Vector2f>) | |
void | normalize (std::vector< cv::Point2f > &uv) |
Normalize multiple features uv coordinates in OpenCV format (std::vector<cv::Point2f>) | |
void | normalize (Eigen::Vector2f &uv) |
Normalize a single feature uv coordinates in Eigen format (Eigen::Vector2f) | |
void | normalize (cv::Point2f &uv) |
Normalize multiple features uv coordinates in OpenCV format (cv::Point2f) | |
void | denormalize (std::vector< Eigen::Vector2f > &uv) |
Denormalize multiple features uv coordinates in Eigen format (std::vector<Eigen::Vector2f>) | |
void | denormalize (std::vector< cv::Point2f > &uv) |
Denormalize multiple features uv coordinates in OpenCV format (std::vector<cv::Point2f>) | |
void | denormalize (Eigen::Vector2f &uv) |
Denormalize a single feature uv coordinates in Eigen format (Eigen::Vector2f) | |
void | denormalize (cv::Point2f &uv) |
Denormalize multiple features uv coordinates in OpenCV format (cv::Point2f) | |
void | setIntrinsics (const Vector4 &intrinsics) |
Set the value of the intrinsic parameters. | |
const Vector4 & | intrinsics () const |
Get camera intrinsics parameter (fx, fy, cx, cy) as a 4 vector. | |
const VectorX & | distortionCoefficients () const |
Get camera distortion coefficients (k1, k2, p1, p2, ...) as a vector. | |
Protected Member Functions | |
PinholeCamera (const VectorX &distortion_coefficients, const Vector4 instrinsics, const uint &width, const uint &height) | |
PinholeCamera ()=delete | |
Rule of Five. | |
PinholeCamera (const PinholeCamera &)=delete | |
PinholeCamera (PinholeCamera &&)=delete | |
PinholeCamera & | operator= (const PinholeCamera &)=delete |
PinholeCamera & | operator= (PinholeCamera &&)=delete |
This class represnt the base class for any pinhole camera type.
void msceqf::PinholeCamera::denormalize | ( | cv::Point2f & | uv | ) |
Denormalize multiple features uv coordinates in OpenCV format (cv::Point2f)
uv | uv coordinates |
void msceqf::PinholeCamera::denormalize | ( | Eigen::Vector2f & | uv | ) |
Denormalize a single feature uv coordinates in Eigen format (Eigen::Vector2f)
uv | uv coordinates |
void msceqf::PinholeCamera::denormalize | ( | std::vector< cv::Point2f > & | uv | ) |
Denormalize multiple features uv coordinates in OpenCV format (std::vector<cv::Point2f>)
uv | uv coordinates |
void msceqf::PinholeCamera::denormalize | ( | std::vector< Eigen::Vector2f > & | uv | ) |
Denormalize multiple features uv coordinates in Eigen format (std::vector<Eigen::Vector2f>)
uv | uv coordinates |
const VectorX & msceqf::PinholeCamera::distortionCoefficients | ( | ) | const |
Get camera distortion coefficients (k1, k2, p1, p2, ...) as a vector.
const Vector4 & msceqf::PinholeCamera::intrinsics | ( | ) | const |
Get camera intrinsics parameter (fx, fy, cx, cy) as a 4 vector.
void msceqf::PinholeCamera::normalize | ( | cv::Point2f & | uv | ) |
Normalize multiple features uv coordinates in OpenCV format (cv::Point2f)
uv | uv coordinates |
void msceqf::PinholeCamera::normalize | ( | Eigen::Vector2f & | uv | ) |
Normalize a single feature uv coordinates in Eigen format (Eigen::Vector2f)
uv | uv coordinates |
void msceqf::PinholeCamera::normalize | ( | std::vector< cv::Point2f > & | uv | ) |
Normalize multiple features uv coordinates in OpenCV format (std::vector<cv::Point2f>)
uv | uv coordinates |
void msceqf::PinholeCamera::normalize | ( | std::vector< Eigen::Vector2f > & | uv | ) |
Normalize multiple features uv coordinates in Eigen format (std::vector<Eigen::Vector2f>)
uv | uv coordinates |
void msceqf::PinholeCamera::setIntrinsics | ( | const Vector4 & | intrinsics | ) |
Set the value of the intrinsic parameters.
intrinsics | R4 vector representing the camera intrinsic parameters (fx, fy, cx, cy) |
|
pure virtual |
Undistort given distorted point in OpenCV format (std::vector<cv::Point2f>)
uv_cv | uv coordinates |
normalize | flag to decide wether normalize coordinates or not |
Implemented in msceqf::EquidistantCamera, and msceqf::RadtanCamera.
void msceqf::PinholeCamera::undistort | ( | std::vector< Eigen::Vector2f > & | uv, |
const bool & | normalize = false ) |
Undistort given distorted point in Eigen format (std::vector<Eigen::Vector2f>)
uv | uv coordinates |
normalize | Flag to decide wether normalize coordinates or not |
|
pure virtual |
Undistort given image in openCV format (cv::Mat)
image | Image to be undistorted |
image_undistorted | Undistorted image |
Implemented in msceqf::EquidistantCamera, and msceqf::RadtanCamera.