Closed stekla79 closed 6 years ago
Hi @stekla79
Histogram equalization options are not really part of the sensor, it is all done in software by the colorizer
class. As a result, these options are configurable on the colorizer
object itself:
colorizer c;
c.set_option(RS2_OPTION_HISTOGRAM_EQUALIZATION_ENABLED, 0.f);
//...
c.colorize(depth_frame);
At the moment, the viewer is not saving post-processing settings to JSON (since originally the file format was designed to capture only hardware settings). We are planning to extend the Viewer to include these.
Hi @stekla79 Do you need further assistance?
No, you solved my problem!
Thanks a lot!
Is there any way to set RS2_OPTION_HISTOGRAM_EQUALIZATION_ENABLED or RS2_OPTION_MIN_DISTANCE in C++?
I would like to get a fixed scale of the depth visualisation from the depth frame. I have loaded a preset json file I created in Realsense Viewer and are trying to set the options in the code but it throws a wrong_api_call_sequence_error.
When looking at the settable options querying the sensor it displays the following: 32: Histogram Equalization Enabled is not supported 33: Min Distance is not supported 34: Max Distance is not supported
I can alter other options that are supported like RS2_OPTION_EMITTER_ENABLED for instance.
Below is some code
What I would like to accomplish is a fixed color on the depth map for background subtraction in OpenCV. Maybe there is a better way? When I use the colorizer the intensity of the color scheme changes when a object gets closer to the camera.