47#ifndef _PARAMETERS_HPP_
48#define _PARAMETERS_HPP_
50#include "JsonParser.h"
51#include <opencv2/core.hpp>
63 namespace ProjectionType {
64 auto const perspective =
"Perspective";
65 auto const equirectangular =
"Equirectangular";
68 enum class ColorFormat {
153 void printTo(std::ostream& stream)
const;
158 void setFov(
float fovV,
float fovH);
159 void setFov(cv::Vec4f & fov);
174 void setDepthColorFormatFrom(
json::Node root);
185 std::string m_projectionType;
186 cv::Vec3f m_position;
187 cv::Vec3f m_rotation;
188 cv::Vec2f m_depthRange;
189 bool m_hasInvalidDepth;
190 cv::Size m_resolution;
193 ColorFormat m_colorFormat;
194 ColorFormat m_depthColorFormat;
195 cv::Vec2f m_horRange;
196 cv::Vec2f m_verRange;
197 bool m_isFullHorRange;
198 cv::Rect m_cropRegion;
200 cv::Vec2f m_principlePoint;
cv::Rect getCropRegion() const
void setRotation(cv::Vec3f)
int getColorBitDepth() const
void setNewResolution(int w, int h)
ColorFormat getColorFormat() const
std::string const & getProjectionType() const
bool hasInvalidDepth() const
cv::Vec3f getRotation() const
static Parameters readFrom(json::Node parameters)
cv::Vec2f getDepthRange() const
void printTo(std::ostream &stream) const
cv::Vec2f getPrinciplePoint() const
cv::Vec2f getHorRange() const
cv::Vec2f getVerRange() const
json::Node const & getRoot() const
void setPosition(cv::Vec3f)
cv::Size getPaddedSize() const
cv::Matx33f getRotationMatrix() const
cv::Vec3f getPosition() const
ColorFormat getDepthColorFormat() const
int getDepthBitDepth() const
cv::Vec2f getFocal() const
bool isFullHorRange() const