![]() |
Utilities
Utilities header only library
|
Parameters of a virtual scanner. More...
Public Member Functions | |
| bool | IsValid () const |
| Checks validity of parameters values. If they are incorrect returns false and logs errors. | |
| 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::IntrinsicParams | |
| 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. | |
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 | |
| glm::uvec2 | resolution |
| Resolution of device. | |
| float | baseline { 350.0f } |
| Distance between camera and projector. | |
| float | camera_angle { 11.75f } |
| The amount of angular deviation (degrees) of camera from being orthogonal to the device. | |
| float | projector_angle { 11.75f } |
| The amount of angular deviation (degrees) of projector from being orthogonal to the device. | |
| float | projector_fovx { 47.50f } |
| Field of view of projection volume in x direction. | |
| float | projector_fovy { 36.00f } |
| Field of view of projection volume in y direction. | |
| float | near_range { 458.0f } |
| The minimal distance that can be captured by scanner. | |
| float | far_range { 1118.0f } |
| The maximal distance that can be captured by scanner. | |
Data Fields inherited from utils::IntrinsicParams | |
| 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 } |
Parameters of a virtual scanner.
|
overridevirtual |
Read json node and initialize this.
| nlohmann::json::exception | when required keys are missing. |
Reimplemented from utils::IntrinsicParams.