Parameters that defines the behavior of the grab. More...
Functions | |
RuntimeParameters (SENSING_MODE sensing_mode_=SENSING_MODE::STANDARD, bool enable_depth_=true, int confidence_threshold_=100, int texture_confidence_threshold_=100, REFERENCE_FRAME measure3D_reference_frame_=REFERENCE_FRAME::CAMERA, bool remove_saturated_areas_=true) | |
Default constructor, set all parameters to their default and optimized values. More... | |
bool | save (String filename) |
Saves the current set of parameters into a file. More... | |
bool | load (String filename) |
Loads the values of the parameters contained in a file. More... | |
bool | operator== (const RuntimeParameters ¶m1) const |
bool | operator!= (const RuntimeParameters ¶m1) const |
Attributes | |
SENSING_MODE | sensing_mode |
REFERENCE_FRAME | measure3D_reference_frame |
bool | enable_depth |
int | confidence_threshold = 100 |
int | texture_confidence_threshold = 100 |
bool | remove_saturated_areas = true |
Parameters that defines the behavior of the grab.
Default values are enabled.
You can customize it to fit your application and then save it to create a preset that can be loaded for further executions.
RuntimeParameters | ( | SENSING_MODE | sensing_mode_ = SENSING_MODE::STANDARD , |
bool | enable_depth_ = true , |
||
int | confidence_threshold_ = 100 , |
||
int | texture_confidence_threshold_ = 100 , |
||
REFERENCE_FRAME | measure3D_reference_frame_ = REFERENCE_FRAME::CAMERA , |
||
bool | remove_saturated_areas_ = true |
||
) |
Default constructor, set all parameters to their default and optimized values.
bool save | ( | String | filename | ) |
Saves the current set of parameters into a file.
filename | : the name of the file which will be created to store the parameters (extension '.yml' will be added if not set). |
bool load | ( | String | filename | ) |
Loads the values of the parameters contained in a file.
filename | : the 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 operator== | ( | const RuntimeParameters & | param1 | ) | const |
Comparison operator ==
RuntimeParameters | to compare |
bool operator!= | ( | const RuntimeParameters & | param1 | ) | const |
Comparison operator !=
RuntimeParameters | to compare |
SENSING_MODE sensing_mode |
Defines the algorithm used for depth map computation, more info : SENSING_MODE definition.
default : SENSING_MODE::STANDARD
REFERENCE_FRAME measure3D_reference_frame |
Provides 3D measures (point cloud and normals) in the desired reference frame (default is REFERENCE_FRAME::CAMERA)
default : REFERENCE_FRAME::CAMERA
bool enable_depth |
Defines if the depth map should be computed.
If false, only the images are available.
default : true
int confidence_threshold = 100 |
Threshold to reject depth values based on their confidence.
Each depth pixel has a corresponding confidence. (MEASURE::CONFIDENCE), the confidence range is [1,100].
By default, the confidence threshold is set at 100, meaning that no depth pixel will be rejected.
Decreasing this value will remove depth data from both objects edges and low textured areas, to keep only confident depth estimation data. Pixels with a value close to 100 are not to be trusted. Accurate depth pixels tends to be closer to lower values. It can be seen as a probability of error, scaled to 100.
int texture_confidence_threshold = 100 |
Threshold to reject depth values based on their texture confidence.
The texture confidence range is [1,100].
By default, the texture confidence threshold is set at 100, meaning that no depth pixel will be rejected.
Decreasing this value will remove depth data from image areas which are uniform. Pixels with a value close to 100 are not to be trusted. Accurate depth pixels tends to be closer to lower values.
bool remove_saturated_areas = true |
Defines if the saturated area (Luminance>=255) must be removed from depth map estimation
True by default
It is recommended to keep this parameter at true because saturated area can create false detection.