Contains the pinhole camera intrinsic parameters.
More...
#include <PinholeCameraIntrinsic.h>
|
| PinholeCameraIntrinsic () |
| Default Constructor. More...
|
|
| PinholeCameraIntrinsic (int width, int height, const Eigen::Matrix3d &intrinsic_matrix) |
| Parameterized Constructor. More...
|
|
| PinholeCameraIntrinsic (PinholeCameraIntrinsicParameters param) |
| Parameterized Constructor. More...
|
|
| PinholeCameraIntrinsic (int width, int height, double fx, double fy, double cx, double cy) |
| Parameterized Constructor. More...
|
|
| ~PinholeCameraIntrinsic () override |
|
void | SetIntrinsics (int width, int height, double fx, double fy, double cx, double cy) |
| Set camera intrinsic parameters. More...
|
|
std::pair< double, double > | GetFocalLength () const |
| Returns the focal length in a tuple of X-axis and Y-axis focal lengths. More...
|
|
std::pair< double, double > | GetPrincipalPoint () const |
|
double | GetSkew () const |
| Returns the skew. More...
|
|
bool | IsValid () const |
| Returns true iff both the width and height are greater than 0. More...
|
|
bool | ConvertToJsonValue (Json::Value &value) const override |
|
bool | ConvertFromJsonValue (const Json::Value &value) override |
|
virtual | ~IJsonConvertible () |
|
virtual std::string | ToString () const |
| Convert to a styled string representation of JSON data for display. More...
|
|
|
static bool | EigenVector3dFromJsonArray (Eigen::Vector3d &vec, const Json::Value &value) |
|
static bool | EigenVector3dToJsonArray (const Eigen::Vector3d &vec, Json::Value &value) |
|
static bool | EigenVector4dFromJsonArray (Eigen::Vector4d &vec, const Json::Value &value) |
|
static bool | EigenVector4dToJsonArray (const Eigen::Vector4d &vec, Json::Value &value) |
|
static bool | EigenMatrix3dFromJsonArray (Eigen::Matrix3d &mat, const Json::Value &value) |
|
static bool | EigenMatrix3dToJsonArray (const Eigen::Matrix3d &mat, Json::Value &value) |
|
static bool | EigenMatrix4dFromJsonArray (Eigen::Matrix4d &mat, const Json::Value &value) |
|
static bool | EigenMatrix4dToJsonArray (const Eigen::Matrix4d &mat, Json::Value &value) |
|
static bool | EigenMatrix4dFromJsonArray (Eigen::Matrix4d_u &mat, const Json::Value &value) |
|
static bool | EigenMatrix4dToJsonArray (const Eigen::Matrix4d_u &mat, Json::Value &value) |
|
static bool | EigenMatrix6dFromJsonArray (Eigen::Matrix6d &mat, const Json::Value &value) |
|
static bool | EigenMatrix6dToJsonArray (const Eigen::Matrix6d &mat, Json::Value &value) |
|
static bool | EigenMatrix6dFromJsonArray (Eigen::Matrix6d_u &mat, const Json::Value &value) |
|
static bool | EigenMatrix6dToJsonArray (const Eigen::Matrix6d_u &mat, Json::Value &value) |
|
Contains the pinhole camera intrinsic parameters.
◆ PinholeCameraIntrinsic() [1/4]
open3d::camera::PinholeCameraIntrinsic::PinholeCameraIntrinsic |
( |
| ) |
|
◆ PinholeCameraIntrinsic() [2/4]
open3d::camera::PinholeCameraIntrinsic::PinholeCameraIntrinsic |
( |
int |
width, |
|
|
int |
height, |
|
|
const Eigen::Matrix3d & |
intrinsic_matrix |
|
) |
| |
Parameterized Constructor.
- Parameters
-
width | width of the image. (Default: -1). |
height | height of the image. (Default: -1). |
intrinsic_matrix | 3x3 intrinsic matrix. (Default: Identity). |
◆ PinholeCameraIntrinsic() [3/4]
Parameterized Constructor.
- Parameters
-
param | Sets the camera parameters to the default settings of one of the sensors. |
◆ PinholeCameraIntrinsic() [4/4]
open3d::camera::PinholeCameraIntrinsic::PinholeCameraIntrinsic |
( |
int |
width, |
|
|
int |
height, |
|
|
double |
fx, |
|
|
double |
fy, |
|
|
double |
cx, |
|
|
double |
cy |
|
) |
| |
Parameterized Constructor.
- Parameters
-
width | width of the image. |
height | height of the image. |
fx | focal length along the X-axis. |
fy | focal length along the Y-axis. |
cx | principal point of the X-axis. |
cy | principal point of the Y-axis. |
◆ ~PinholeCameraIntrinsic()
open3d::camera::PinholeCameraIntrinsic::~PinholeCameraIntrinsic |
( |
| ) |
|
|
override |
◆ ConvertFromJsonValue()
bool open3d::camera::PinholeCameraIntrinsic::ConvertFromJsonValue |
( |
const Json::Value & |
value | ) |
|
|
overridevirtual |
◆ ConvertToJsonValue()
bool open3d::camera::PinholeCameraIntrinsic::ConvertToJsonValue |
( |
Json::Value & |
value | ) |
const |
|
overridevirtual |
◆ GetFocalLength()
std::pair<double, double> open3d::camera::PinholeCameraIntrinsic::GetFocalLength |
( |
| ) |
const |
|
inline |
Returns the focal length in a tuple of X-axis and Y-axis focal lengths.
◆ GetPrincipalPoint()
std::pair<double, double> open3d::camera::PinholeCameraIntrinsic::GetPrincipalPoint |
( |
| ) |
const |
|
inline |
Returns the principle point in a tuple of X-axis and Y-axis principle point.
◆ GetSkew()
double open3d::camera::PinholeCameraIntrinsic::GetSkew |
( |
| ) |
const |
|
inline |
◆ IsValid()
bool open3d::camera::PinholeCameraIntrinsic::IsValid |
( |
| ) |
const |
|
inline |
Returns true
iff both the width and height are greater than 0.
◆ SetIntrinsics()
void open3d::camera::PinholeCameraIntrinsic::SetIntrinsics |
( |
int |
width, |
|
|
int |
height, |
|
|
double |
fx, |
|
|
double |
fy, |
|
|
double |
cx, |
|
|
double |
cy |
|
) |
| |
|
inline |
Set camera intrinsic parameters.
- Parameters
-
width | - width of the image. |
height | - height of the image. |
fx | - focal length along the X-axis. |
fy | - focal length along the Y-axis. |
cx | - principal point of the X-axis. |
cy | - principal point of the Y-axis. |
◆ height_
int open3d::camera::PinholeCameraIntrinsic::height_ = -1 |
◆ intrinsic_matrix_
Eigen::Matrix3d open3d::camera::PinholeCameraIntrinsic::intrinsic_matrix_ |
3x3 matrix.
Intrinsic camera matrix:
[[fx, 0, cx],
[0, fy, cy],
[0, 0, 1]]
◆ width_
int open3d::camera::PinholeCameraIntrinsic::width_ = -1 |
The documentation for this class was generated from the following files: