![]() |
Utilities
Utilities header only library
|
Holds camera intrinsic projection parameters. More...
Public Member Functions | |
| IntrinsicParams (float t_fx, float t_fy, float t_cx, float t_cy) | |
| float | GetFovX () const |
| Calculates horizontal field of view. In radians. | |
| float | GetFovY () const |
| Calculates vertical field of view. In radians. | |
| virtual void | AddToJsonNode (nlohmann::json &node) const override |
| Fill data of this to json node. | |
| virtual bool | ReadFromJsonNode (const nlohmann::json &node) override |
| Read json node and initialize this. More... | |
Public Member Functions inherited from utils::SerializableJson | |
| std::string | Serialize () const |
| Stores object to json string. | |
| bool | Deserialize (const std::string &json_string) |
| Loads object from json string. | |
Data Fields | |
| float | fx { 0.0f } |
| Focal length in terms of pixels. | |
| float | fy { 0.0f } |
| float | cx { 0.0f } |
| Principal point coordinates. Ideally in the center of the image. | |
| float | cy { 0.0f } |
Holds camera intrinsic projection parameters.
More information about intrinsic camera parameters can be found on Wikipedia https://en.wikipedia.org/wiki/Camera_resectioning and distortion coefficients at https://docs.opencv.org/2.4/doc/tutorials/calib3d/camera_calibration/camera_calibration.html
|
overridevirtual |
Read json node and initialize this.
| nlohmann::json::exception | when required keys are missing. |
Implements utils::SerializableJson.
Reimplemented in utils::ScannerParams.