4 #include "../include/librealsense2/hpp/rs_sensor.hpp" 5 #include "../include/librealsense2/hpp/rs_processing.hpp" 20 _transform_to_disparity(transform_to_disparity),
21 _update_target(false),
22 _width(0), _height(0), _bpp(0)
24 auto transform_opt = std::make_shared<ptr_option<bool>>(
27 "Stereoscopic Transformation Mode");
28 transform_opt->set_description(
false,
"Disparity to Depth");
29 transform_opt->set_description(
true,
"Depth to Disparity");
30 transform_opt->on_set([
this, transform_opt](
float val)
33 if (!transform_opt->is_valid(val))
76 convert<uint16_t, float>(
src.get_data(),
const_cast<void*
>(tgt.
get_data()));
78 convert<float, uint16_t>(
src.get_data(),
const_cast<void*
>(tgt.
get_data()));
117 tgt_vspi->set_intrinsics([src_intrin]() {
return src_intrin; });
118 tgt_vspi->set_dims(src_intrin.
width, src_intrin.
height);
static const textual_icon lock
stream_profile get_profile() const
const void * get_data() const
void unregister_option(rs2_option id)
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
static info update_info_from_frame(const rs2::frame &f)
def info(name, value, persistent=False)
librealsense::stream_profile_interface * profile
rs2_format format() const
const rs2_stream_profile * get() const
GLsizei GLsizei GLchar * source
rs2_stream stream_type() const
stream_profile clone(rs2_stream type, int index, rs2_format format) const
std::string to_string(T value)