Classes | Macros | Typedefs | Functions
rs-measure.cpp File Reference
#include <librealsense2/rs.hpp>
#include <librealsense2/rsutil.h>
#include "example.hpp"
#include <math.h>
#include <queue>
#include <unordered_set>
#include <map>
#include <thread>
#include <atomic>
#include <mutex>
Include dependency graph for rs-measure.cpp:

Go to the source code of this file.

Classes

struct  state
 
struct  toggle
 

Macros

#define _USE_MATH_DEFINES
 

Typedefs

using pixel = std::pair< int, int >
 

Functions

float dist_3d (const rs2::depth_frame &frame, pixel u, pixel v)
 
void draw_line (float x0, float y0, float x1, float y1, int width)
 
int main (int argc, char *argv[])
 
void register_glfw_callbacks (window &app, state &app_state)
 
void render_simple_distance (const rs2::depth_frame &depth, const state &s, const window &app)
 

Macro Definition Documentation

#define _USE_MATH_DEFINES

Definition at line 9 of file rs-measure.cpp.

Typedef Documentation

using pixel = std::pair<int, int>

Definition at line 18 of file rs-measure.cpp.

Function Documentation

float dist_3d ( const rs2::depth_frame frame,
pixel  u,
pixel  v 
)

Definition at line 259 of file rs-measure.cpp.

void draw_line ( float  x0,
float  y0,
float  x1,
float  y1,
int  width 
)

Definition at line 292 of file rs-measure.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 100 of file rs-measure.cpp.

void register_glfw_callbacks ( window app,
state app_state 
)

Definition at line 361 of file rs-measure.cpp.

void render_simple_distance ( const rs2::depth_frame depth,
const state s,
const window app 
)

Definition at line 305 of file rs-measure.cpp.



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