Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
rs2::depth_quality::metrics_model Class Reference

#include <depth-quality-model.h>

Public Member Functions

void add_metric (std::shared_ptr< metric_plot > metric)
 
void begin_process_frame (rs2::frame f)
 
void disable_ground_truth ()
 
std::tuple< int, bool > get_inputs () const
 
snapshot_metrics get_last_metrics ()
 
std::array< float3, 4 > get_plane ()
 
region_of_interest get_roi ()
 
bool is_recording ()
 
 metrics_model (viewer_model &viewer_model)
 
void render (ux_window &win)
 
void reset ()
 
void set_ground_truth (int gt)
 
void set_plane_fit (bool found)
 
void start_record ()
 
void stop_record (device_model *dev)
 
void update_device_data (const std::string &camera_info)
 
void update_roi_attributes (const region_of_interest &roi, float roi_percent)
 
void update_stream_attributes (const rs2_intrinsics &intrinsic, float scale_units, float baseline)
 
 ~metrics_model ()
 

Public Attributes

callback_type callback
 

Private Member Functions

 metrics_model (const metrics_model &)
 

Private Attributes

bool _active
 
std::string _camera_info
 
rs2_intrinsics _depth_intrinsic
 
float _depth_scale_units
 
frame_queue _frame_queue
 
int _ground_truth_mm
 
snapshot_metrics _latest_metrics
 
std::mutex _m
 
bool _plane_fit
 
std::vector< std::shared_ptr< metric_plot > > _plots
 
metrics_recorder _recorder
 
region_of_interest _roi
 
float _roi_percentage
 
float _stereo_baseline_mm
 
bool _use_gt
 
std::thread _worker_thread
 

Friends

class metrics_recorder
 
class tool_model
 

Detailed Description

Definition at line 223 of file depth-quality-model.h.

Constructor & Destructor Documentation

rs2::depth_quality::metrics_model::metrics_model ( viewer_model viewer_model)

Definition at line 1021 of file depth-quality-model.cpp.

rs2::depth_quality::metrics_model::~metrics_model ( )

Definition at line 1091 of file depth-quality-model.cpp.

rs2::depth_quality::metrics_model::metrics_model ( const metrics_model )
private

Member Function Documentation

void rs2::depth_quality::metrics_model::add_metric ( std::shared_ptr< metric_plot metric)
inline

Definition at line 266 of file depth-quality-model.h.

void rs2::depth_quality::metrics_model::begin_process_frame ( rs2::frame  f)
inline

Definition at line 264 of file depth-quality-model.h.

void rs2::depth_quality::metrics_model::disable_ground_truth ( )
inline

Definition at line 291 of file depth-quality-model.h.

std::tuple<int, bool> rs2::depth_quality::metrics_model::get_inputs ( ) const
inline

Definition at line 297 of file depth-quality-model.h.

snapshot_metrics rs2::depth_quality::metrics_model::get_last_metrics ( )
inline

Definition at line 258 of file depth-quality-model.h.

std::array<float3, 4> rs2::depth_quality::metrics_model::get_plane ( )
inline

Definition at line 231 of file depth-quality-model.h.

region_of_interest rs2::depth_quality::metrics_model::get_roi ( )
inline

Definition at line 252 of file depth-quality-model.h.

bool rs2::depth_quality::metrics_model::is_recording ( )
inline

Definition at line 314 of file depth-quality-model.h.

void rs2::depth_quality::metrics_model::render ( ux_window win)

Definition at line 1242 of file depth-quality-model.cpp.

void rs2::depth_quality::metrics_model::reset ( void  )
inline

Definition at line 303 of file depth-quality-model.h.

void rs2::depth_quality::metrics_model::set_ground_truth ( int  gt)
inline

Definition at line 270 of file depth-quality-model.h.

void rs2::depth_quality::metrics_model::set_plane_fit ( bool  found)
inline

Definition at line 277 of file depth-quality-model.h.

void rs2::depth_quality::metrics_model::start_record ( )
inline

Definition at line 318 of file depth-quality-model.h.

void rs2::depth_quality::metrics_model::stop_record ( device_model dev)
inline

Definition at line 322 of file depth-quality-model.h.

void rs2::depth_quality::metrics_model::update_device_data ( const std::string camera_info)
inline

Definition at line 310 of file depth-quality-model.h.

void rs2::depth_quality::metrics_model::update_roi_attributes ( const region_of_interest roi,
float  roi_percent 
)
inline

Definition at line 245 of file depth-quality-model.h.

void rs2::depth_quality::metrics_model::update_stream_attributes ( const rs2_intrinsics intrinsic,
float  scale_units,
float  baseline 
)
inline

Definition at line 237 of file depth-quality-model.h.

Friends And Related Function Documentation

friend class metrics_recorder
friend

Definition at line 347 of file depth-quality-model.h.

friend class tool_model
friend

Definition at line 348 of file depth-quality-model.h.

Member Data Documentation

bool rs2::depth_quality::metrics_model::_active
private

Definition at line 341 of file depth-quality-model.h.

std::string rs2::depth_quality::metrics_model::_camera_info
private

Definition at line 344 of file depth-quality-model.h.

rs2_intrinsics rs2::depth_quality::metrics_model::_depth_intrinsic
private

Definition at line 332 of file depth-quality-model.h.

float rs2::depth_quality::metrics_model::_depth_scale_units
private

Definition at line 333 of file depth-quality-model.h.

frame_queue rs2::depth_quality::metrics_model::_frame_queue
private

Definition at line 329 of file depth-quality-model.h.

int rs2::depth_quality::metrics_model::_ground_truth_mm
private

Definition at line 335 of file depth-quality-model.h.

snapshot_metrics rs2::depth_quality::metrics_model::_latest_metrics
private

Definition at line 340 of file depth-quality-model.h.

std::mutex rs2::depth_quality::metrics_model::_m
mutableprivate

Definition at line 345 of file depth-quality-model.h.

bool rs2::depth_quality::metrics_model::_plane_fit
private

Definition at line 337 of file depth-quality-model.h.

std::vector<std::shared_ptr<metric_plot> > rs2::depth_quality::metrics_model::_plots
private

Definition at line 342 of file depth-quality-model.h.

metrics_recorder rs2::depth_quality::metrics_model::_recorder
private

Definition at line 343 of file depth-quality-model.h.

region_of_interest rs2::depth_quality::metrics_model::_roi
private

Definition at line 338 of file depth-quality-model.h.

float rs2::depth_quality::metrics_model::_roi_percentage
private

Definition at line 339 of file depth-quality-model.h.

float rs2::depth_quality::metrics_model::_stereo_baseline_mm
private

Definition at line 334 of file depth-quality-model.h.

bool rs2::depth_quality::metrics_model::_use_gt
private

Definition at line 336 of file depth-quality-model.h.

std::thread rs2::depth_quality::metrics_model::_worker_thread
private

Definition at line 330 of file depth-quality-model.h.

callback_type rs2::depth_quality::metrics_model::callback

Definition at line 268 of file depth-quality-model.h.


The documentation for this class was generated from the following files:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:41