47#ifndef RVSOCULUS_CONFIG_H
48#define RVSOCULUS_CONFIG_H
50#include "Parameters.h"
52#include "JsonParser.h"
57#include <opencv2/core.hpp>
72 enum class ColorSpace {
82 namespace ViewSynthesisMethod
84 auto const triangles =
"Triangles";
91 namespace BlendingMethod
93 auto const simple =
"Simple";
94 auto const multispectral =
"Multispectral";
100 extern float g_rescale;
103 extern ColorSpace g_color_space;
107 extern bool g_with_opengl;
190 std::vector<Parameters> loadCamerasParametersFromFile(std::string
const& filepath, std::vector<std::string> names,
json::Node overrides);
194 void setInputCameraNamesFrom(
json::Node root);
195 void setVirtualCameraNamesFrom(
json::Node root);
196 void setInputCameraParameters(
json::Node root);
197 void setVirtualCameraParameters(
json::Node root);
198 void setInputFilepaths(
json::Node root,
char const *name, std::vector<std::string>&);
199 void setOutputFilepaths(
json::Node root,
char const *name, std::vector<std::string>&);
204 void setBlendingLowFreqFactor(
json::Node root);
205 void setBlendingHighFreqFactor(
json::Node root);
208 void setOverrideVirtualViewSetting(
json::Node root);
Configuration parameters.
float blending_low_freq_factor
std::vector< std::string > outdepthfilenames
static Config loadFromFile(std::string const &filename, std::string const &dir)
std::vector< Parameters > params_real
std::vector< std::string > outfilenames
float blending_high_freq_factor
std::vector< std::string > outmaskedfilenames
std::vector< std::string > outmaskdepthfilenames
std::vector< std::string > outmaskfilenames
bool overrideVirtualViewSetting
std::vector< std::string > VirtualCameraNames
std::vector< std::string > InputCameraNames
std::vector< std::string > depth_names
std::vector< std::string > texture_names
std::vector< Parameters > params_virtual
std::string blending_method