struct cogs::ScanCameraParams
Overview
Parameters of a camera used to capture Scan. More…
#include <ScanCameraParams.h> struct ScanCameraParams: public utils::IntrinsicParams { // fields float k1 = 0.0f; float k2 = 0.0f; float k3 = 0.0f; float p1 = 0.0f; float p2 = 0.0f; glm::mat4 view = glm::mat4(1.0f); // construction ScanCameraParams(); };
Inherited Members
public: // fields float fx { 0.0f }; float fy { 0.0f }; float cx { 0.0f }; float cy { 0.0f }; // methods std::string Serialize() const; bool Deserialize(const std::string& json_string); virtual void AddToJsonNode(nlohmann::json& node) const = 0; virtual bool ReadFromJsonNode(const nlohmann::json& node) = 0; float GetFovX() const; float GetFovY() const; virtual void AddToJsonNode(nlohmann::json& node) const; virtual bool ReadFromJsonNode(const nlohmann::json& node);
Detailed Documentation
Parameters of a camera used to capture Scan.
Fields
float k1 = 0.0f
Distortion radial coefficient k1.
float k2 = 0.0f
Distortion radial coefficient k2.
float k3 = 0.0f
Distortion radial coefficient k3.
float p1 = 0.0f
Distortion tangential coefficient p1.
float p2 = 0.0f
Distortion tangential coefficient p2.
glm::mat4 view = glm::mat4(1.0f)
Transformation to view space of camera.