4 #include "../include/librealsense2/hpp/rs_sensor.hpp" 5 #include "../include/librealsense2/hpp/rs_processing.hpp" 21 auto min_opt = std::make_shared<ptr_option<float>>(0.f, 16.f, 0.1f, 0.1f, &
_min,
"Min range in meters");
23 auto max_opt = std::make_shared<ptr_option<float>>(0.f, 16.f, 0.1f, 4.f, &
_max,
"Max range in meters");
26 std::make_shared<max_distance_option>(
31 std::make_shared<min_distance_option>(
48 auto height = vf.get_height();
58 auto new_data = (
uint16_t*)ptr->get_frame_data();
60 ptr->set_sensor(
orig->get_sensor());
61 auto du =
orig->get_units();
63 memset(new_data, 0, width * height *
sizeof(
uint16_t));
66 auto dist = du * depth_data[
i];
stream_profile get_profile() const
rs2::stream_profile _source_stream_profile
rs2::frame process_frame(const rs2::frame_source &source, const rs2::frame &f) override
void register_option(rs2_option id, std::shared_ptr< option > option)
frame allocate_video_frame(const stream_profile &profile, const frame &original, int new_bpp=0, int new_width=0, int new_height=0, int new_stride=0, rs2_extension frame_type=RS2_EXTENSION_VIDEO_FRAME) const
GLint GLsizei GLsizei height
stream_filter _stream_filter
const rs2_stream_profile * get() const
GLsizei GLsizei GLchar * source
rs2::stream_profile _target_stream_profile
stream_profile clone(rs2_stream type, int index, rs2_format format) const