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_=false) | |
| Default constructor. More... | |
| bool | save (String filename) const |
| Saves the current set of parameters into a file to be reloaded with the load() method. More... | |
| bool | load (String filename) |
| Loads a set of parameters from the values contained in a previously saved file. More... | |
| bool | encode (String &serialized_content) 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) |
| 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 = false |
| 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_ = false |
||
| ) |
Default constructor.
All the parameters are set to their default values.
| bool save | ( | String | filename | ) | 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 '.json' will be added if not set). |
| bool load | ( | String | filename | ) |
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 '.json' will be added at the end of the filename if not detected). |
| bool encode | ( | String & | serialized_content | ) | 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 |
| bool decode | ( | const String & | serialized_content | ) |
Fill the structure from the serialized json object contained in the input string.
| serialized_content | input string containing the JSON Object |
| bool operator== | ( | const RuntimeParameters & | param1 | ) | const |
Comparison operator ==
| param1 | to compare |
| bool operator!= | ( | const RuntimeParameters & | param1 | ) | const |
Comparison operator !=
| param1 | 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 = false |
Defines if the saturated area (luminance>=255) must be removed from depth map estimation.
Default: false