Structure containing parameters that defines the behavior of sl::Camera::grab(). More...
Functions | |
RuntimeParameters (bool enable_depth_=true, bool enable_fill_mode_=false, int confidence_threshold_=95, int texture_confidence_threshold_=100, REFERENCE_FRAME measure3D_reference_frame_=REFERENCE_FRAME::CAMERA, bool remove_saturated_areas_=true) | |
Default constructor. More... | |
bool | save (String filename, SERIALIZATION_FORMAT format=SERIALIZATION_FORMAT::LEGACY) const |
Saves the current set of parameters into a file to be reloaded with the load() method. More... | |
bool | load (String filename, SERIALIZATION_FORMAT format=SERIALIZATION_FORMAT::AUTO) |
Loads a set of parameters from the values contained in a previously saved file. More... | |
bool | encode (String &serialized_content, SERIALIZATION_FORMAT format=SERIALIZATION_FORMAT::JSON) const |
Generate a JSON Object (with the struct type as a key) containing the serialized struct, converted into a string. More... | |
bool | decode (const String &serialized_content, SERIALIZATION_FORMAT format=SERIALIZATION_FORMAT::JSON) |
Fill the structure from the serialized json object contained in the input string. More... | |
bool | operator== (const RuntimeParameters ¶m1) const |
bool | operator!= (const RuntimeParameters ¶m1) const |
Attributes | |
REFERENCE_FRAME | measure3D_reference_frame |
Reference frame in which to provides the 3D measures (point cloud, normals, etc.). More... | |
bool | enable_depth |
Defines if the depth map should be computed. More... | |
bool | enable_fill_mode = false |
Defines if the depth map should be completed or not. More... | |
int | confidence_threshold = 95 |
Threshold to reject depth values based on their confidence. More... | |
int | texture_confidence_threshold = 100 |
Threshold to reject depth values based on their texture confidence. More... | |
bool | remove_saturated_areas = true |
Defines if the saturated area (luminance>=255) must be removed from depth map estimation. More... | |
Structure containing parameters that defines the behavior of sl::Camera::grab().
The default constructor sets all parameters to their default settings.
RuntimeParameters | ( | bool | enable_depth_ = true , |
bool | enable_fill_mode_ = false , |
||
int | confidence_threshold_ = 95 , |
||
int | texture_confidence_threshold_ = 100 , |
||
REFERENCE_FRAME | measure3D_reference_frame_ = REFERENCE_FRAME::CAMERA , |
||
bool | remove_saturated_areas_ = true |
||
) |
Default constructor.
All the parameters are set to their default values.
bool save | ( | String | filename, |
SERIALIZATION_FORMAT | format = SERIALIZATION_FORMAT::LEGACY |
||
) | const |
Saves the current set of parameters into a file to be reloaded with the load() method.
filename | : Name of the file which will be created to store the parameters (extension '.yml' will be added if not set). |
bool load | ( | String | filename, |
SERIALIZATION_FORMAT | format = SERIALIZATION_FORMAT::AUTO |
||
) |
Loads a set of parameters from the values contained in a previously saved file.
filename | : Path to the file from which the parameters will be loaded (extension '.yml' will be added at the end of the filename if not detected). |
bool encode | ( | String & | serialized_content, |
SERIALIZATION_FORMAT | format = SERIALIZATION_FORMAT::JSON |
||
) | const |
Generate a JSON Object (with the struct type as a key) containing the serialized struct, converted into a string.
serialized_content | output string containing the JSON Object |
format | serialization format, default is JSON |
bool decode | ( | const String & | serialized_content, |
SERIALIZATION_FORMAT | format = SERIALIZATION_FORMAT::JSON |
||
) |
Fill the structure from the serialized json object contained in the input string.
serialized_content | input string containing the JSON Object |
format | serialization format, default is JSON |
bool operator== | ( | const RuntimeParameters & | param1 | ) | const |
Comparison operator ==
RuntimeParameters | to compare |
bool operator!= | ( | const RuntimeParameters & | param1 | ) | const |
Comparison operator !=
RuntimeParameters | to compare |
REFERENCE_FRAME measure3D_reference_frame |
Reference frame in which to provides the 3D measures (point cloud, normals, etc.).
Default: sl::REFERENCE_FRAME::CAMERA
bool enable_depth |
Defines if the depth map should be computed.
Default: true
bool enable_fill_mode = false |
Defines if the depth map should be completed or not.
Default: false
int confidence_threshold = 95 |
Threshold to reject depth values based on their confidence.
Each depth pixel has a corresponding confidence (sl::MEASURE::CONFIDENCE) in the range [1, 100].
Decreasing this value will remove depth data from both objects edges and low textured areas, to keep only confident depth estimation data.
Default: 95
int texture_confidence_threshold = 100 |
Threshold to reject depth values based on their texture confidence.
The texture confidence range is [1, 100].
Decreasing this value will remove depth data from image areas which are uniform.
Default: 100 (no depth pixel will be rejected)
bool remove_saturated_areas = true |
Defines if the saturated area (luminance>=255) must be removed from depth map estimation.
Default: true