Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
librealsense::rect_gaussian_dots_target_calculator Class Reference

#include <algo.h>

Inheritance diagram for librealsense::rect_gaussian_dots_target_calculator:
Inheritance graph
[legend]

Classes

struct  point
 

Public Member Functions

bool calculate (const uint8_t *img, float *target_dims, unsigned int target_dims_size) override
 
rect_gaussian_dots_target_calculatoroperator= (const rect_gaussian_dots_target_calculator &)=delete
 
rect_gaussian_dots_target_calculatoroperator= (const rect_gaussian_dots_target_calculator &&)=delete
 
 rect_gaussian_dots_target_calculator (int width, int height)
 
 rect_gaussian_dots_target_calculator (const rect_gaussian_dots_target_calculator &)=delete
 
 rect_gaussian_dots_target_calculator (const rect_gaussian_dots_target_calculator &&)=delete
 
virtual ~rect_gaussian_dots_target_calculator ()
 
- Public Member Functions inherited from librealsense::target_calculator_interface
virtual ~target_calculator_interface ()=default
 

Static Public Attributes

static const int _frame_num = 25
 

Protected Member Functions

void calculate_ncc ()
 
void calculate_rect_sides (float *rect_sides)
 
bool find_corners ()
 
void minimize_x (const double *p, int s, double *f, double &x)
 
void minimize_y (const double *p, int s, double *f, double &y)
 
void normalize (const uint8_t *img)
 
void refine_corners ()
 
double subpixel_agj (double *f, int s)
 
bool validate_corners (const uint8_t *img)
 

Protected Attributes

std::vector< double > _buf
 
point< double > _corners [4]
 
int _height = 0
 
int _hheight
 
int _ht = 0
 
const int _htsize = _tsize >> 1
 
int _hwidth
 
std::vector< double > _img
 
std::vector< double > _imgt
 
std::vector< double > _ncc
 
const int _patch_size = 20
 
point< int > _pts [4]
 
int _size = 0
 
const std::vector< double > _template
 
const double _thresh = 0.7
 
const int _tsize = 28
 
const int _tsize2 = _tsize * _tsize
 
int _width = 0
 
int _wt = 0
 

Detailed Description

Definition at line 148 of file algo.h.

Constructor & Destructor Documentation

rect_gaussian_dots_target_calculator::rect_gaussian_dots_target_calculator ( int  width,
int  height 
)

Definition at line 564 of file algo.cpp.

rect_gaussian_dots_target_calculator::~rect_gaussian_dots_target_calculator ( )
virtual

Definition at line 585 of file algo.cpp.

librealsense::rect_gaussian_dots_target_calculator::rect_gaussian_dots_target_calculator ( const rect_gaussian_dots_target_calculator )
delete
librealsense::rect_gaussian_dots_target_calculator::rect_gaussian_dots_target_calculator ( const rect_gaussian_dots_target_calculator &&  )
delete

Member Function Documentation

bool rect_gaussian_dots_target_calculator::calculate ( const uint8_t img,
float *  target_dims,
unsigned int  target_dims_size 
)
overridevirtual

Implements librealsense::target_calculator_interface.

Definition at line 589 of file algo.cpp.

void rect_gaussian_dots_target_calculator::calculate_ncc ( )
protected

Definition at line 634 of file algo.cpp.

void rect_gaussian_dots_target_calculator::calculate_rect_sides ( float *  rect_sides)
protected

Definition at line 898 of file algo.cpp.

bool rect_gaussian_dots_target_calculator::find_corners ( )
protected

Definition at line 717 of file algo.cpp.

void rect_gaussian_dots_target_calculator::minimize_x ( const double *  p,
int  s,
double *  f,
double &  x 
)
protected

Definition at line 917 of file algo.cpp.

void rect_gaussian_dots_target_calculator::minimize_y ( const double *  p,
int  s,
double *  f,
double &  y 
)
protected

Definition at line 934 of file algo.cpp.

void rect_gaussian_dots_target_calculator::normalize ( const uint8_t img)
protected

Definition at line 607 of file algo.cpp.

rect_gaussian_dots_target_calculator& librealsense::rect_gaussian_dots_target_calculator::operator= ( const rect_gaussian_dots_target_calculator )
delete
rect_gaussian_dots_target_calculator& librealsense::rect_gaussian_dots_target_calculator::operator= ( const rect_gaussian_dots_target_calculator &&  )
delete
void rect_gaussian_dots_target_calculator::refine_corners ( )
protected

Definition at line 822 of file algo.cpp.

double rect_gaussian_dots_target_calculator::subpixel_agj ( double *  f,
int  s 
)
protected

Definition at line 951 of file algo.cpp.

bool rect_gaussian_dots_target_calculator::validate_corners ( const uint8_t img)
protected

Definition at line 864 of file algo.cpp.

Member Data Documentation

std::vector<double> librealsense::rect_gaussian_dots_target_calculator::_buf
protected

Definition at line 218 of file algo.h.

point<double> librealsense::rect_gaussian_dots_target_calculator::_corners[4]
protected

Definition at line 238 of file algo.h.

const int librealsense::rect_gaussian_dots_target_calculator::_frame_num = 25
static

Definition at line 176 of file algo.h.

int librealsense::rect_gaussian_dots_target_calculator::_height = 0
protected

Definition at line 223 of file algo.h.

int librealsense::rect_gaussian_dots_target_calculator::_hheight
protected

Definition at line 229 of file algo.h.

int librealsense::rect_gaussian_dots_target_calculator::_ht = 0
protected

Definition at line 227 of file algo.h.

const int librealsense::rect_gaussian_dots_target_calculator::_htsize = _tsize >> 1
protected

Definition at line 180 of file algo.h.

int librealsense::rect_gaussian_dots_target_calculator::_hwidth
protected

Definition at line 228 of file algo.h.

std::vector<double> librealsense::rect_gaussian_dots_target_calculator::_img
protected

Definition at line 220 of file algo.h.

std::vector<double> librealsense::rect_gaussian_dots_target_calculator::_imgt
protected

Definition at line 182 of file algo.h.

std::vector<double> librealsense::rect_gaussian_dots_target_calculator::_ncc
protected

Definition at line 221 of file algo.h.

const int librealsense::rect_gaussian_dots_target_calculator::_patch_size = 20
protected

Definition at line 217 of file algo.h.

point<int> librealsense::rect_gaussian_dots_target_calculator::_pts[4]
protected

Definition at line 239 of file algo.h.

int librealsense::rect_gaussian_dots_target_calculator::_size = 0
protected

Definition at line 224 of file algo.h.

const std::vector<double> librealsense::rect_gaussian_dots_target_calculator::_template
protected
Initial value:
{
-0.02870443, -0.02855973, -0.02855973, -0.02841493, -0.02827013, -0.02812543, -0.02783583, -0.02769113, -0.02725683, -0.02696723, -0.02667773, -0.02624343, -0.02609863, -0.02595393, -0.02580913, -0.02595393, -0.02609863, -0.02624343, -0.02667773, -0.02696723, -0.02725683, -0.02769113, -0.02783583, -0.02812543, -0.02827013, -0.02841493, -0.02855973, -0.02855973,
-0.02855973, -0.02855973, -0.02841493, -0.02827013, -0.02798063, -0.02769113, -0.02740153, -0.02682253, -0.02624343, -0.02566433, -0.02508533, -0.02465103, -0.02421673, -0.02392713, -0.02378243, -0.02392713, -0.02421673, -0.02465103, -0.02508533, -0.02566433, -0.02624343, -0.02682253, -0.02740153, -0.02769113, -0.02798063, -0.02827013, -0.02841493, -0.02855973,
-0.02855973, -0.02841493, -0.02827013, -0.02798063, -0.02754633, -0.02711203, -0.02638823, -0.02566433, -0.02479573, -0.02378243, -0.02276903, -0.02190043, -0.02117663, -0.02074233, -0.02059753, -0.02074233, -0.02117663, -0.02190043, -0.02276903, -0.02378243, -0.02479573, -0.02566433, -0.02638823, -0.02711203, -0.02754633, -0.02798063, -0.02827013, -0.02841493,
-0.02841493, -0.02827013, -0.02798063, -0.02754633, -0.02696723, -0.02609863, -0.02508533, -0.02392713, -0.02247953, -0.02088703, -0.01929463, -0.01799173, -0.01683363, -0.01610973, -0.01582023, -0.01610973, -0.01683363, -0.01799173, -0.01929463, -0.02088703, -0.02247953, -0.02392713, -0.02508533, -0.02609863, -0.02696723, -0.02754633, -0.02798063, -0.02827013,
-0.02827013, -0.02798063, -0.02754633, -0.02696723, -0.02609863, -0.02479573, -0.02320333, -0.02132133, -0.01914983, -0.01683363, -0.01451733, -0.01234583, -0.01060863, -0.00945043, -0.00916093, -0.00945043, -0.01060863, -0.01234583, -0.01451733, -0.01683363, -0.01914983, -0.02132133, -0.02320333, -0.02479573, -0.02609863, -0.02696723, -0.02754633, -0.02798063,
-0.02812543, -0.02769113, -0.02711203, -0.02609863, -0.02479573, -0.02305853, -0.02074233, -0.01799173, -0.01480683, -0.01133243, -0.00785803, -0.00481793, -0.00221213, -0.00061973, -0.00004063, -0.00061973, -0.00221213, -0.00481793, -0.00785803, -0.01133243, -0.01480683, -0.01799173, -0.02074233, -0.02305853, -0.02479573, -0.02609863, -0.02711203, -0.02769113,
-0.02783583, -0.02740153, -0.02638823, -0.02508533, -0.02320333, -0.02074233, -0.01755743, -0.01364873, -0.00916093, -0.00423883, 0.00053847, 0.00488147, 0.00850057, 0.01081687, 0.01154077, 0.01081687, 0.00850057, 0.00488147, 0.00053847, -0.00423883, -0.00916093, -0.01364873, -0.01755743, -0.02074233, -0.02320333, -0.02508533, -0.02638823, -0.02740153,
-0.02769113, -0.02682253, -0.02566433, -0.02392713, -0.02132133, -0.01799173, -0.01364873, -0.00829233, -0.00221213, 0.00430237, 0.01081687, 0.01660757, 0.02138487, 0.02456977, 0.02558307, 0.02456977, 0.02138487, 0.01660757, 0.01081687, 0.00430237, -0.00221213, -0.00829233, -0.01364873, -0.01799173, -0.02132133, -0.02392713, -0.02566433, -0.02682253,
-0.02725683, -0.02624343, -0.02479573, -0.02247953, -0.01914983, -0.01480683, -0.00916093, -0.00221213, 0.00560527, 0.01400177, 0.02239827, 0.03021567, 0.03629587, 0.04034937, 0.04179697, 0.04034937, 0.03629587, 0.03021567, 0.02239827, 0.01400177, 0.00560527, -0.00221213, -0.00916093, -0.01480683, -0.01914983, -0.02247953, -0.02479573, -0.02624343,
-0.02696723, -0.02566433, -0.02378243, -0.02088703, -0.01683363, -0.01133243, -0.00423883, 0.00430237, 0.01400177, 0.02456977, 0.03499297, 0.04469237, 0.05236497, 0.05743187, 0.05916907, 0.05743187, 0.05236497, 0.04469237, 0.03499297, 0.02456977, 0.01400177, 0.00430237, -0.00423883, -0.01133243, -0.01683363, -0.02088703, -0.02378243, -0.02566433,
-0.02667773, -0.02508533, -0.02276903, -0.01929463, -0.01451733, -0.00785803, 0.00053847, 0.01081687, 0.02239827, 0.03499297, 0.04758767, 0.05916907, 0.06828937, 0.07436957, 0.07639627, 0.07436957, 0.06828937, 0.05916907, 0.04758767, 0.03499297, 0.02239827, 0.01081687, 0.00053847, -0.00785803, -0.01451733, -0.01929463, -0.02276903, -0.02508533,
-0.02624343, -0.02465103, -0.02190043, -0.01799173, -0.01234583, -0.00481793, 0.00488147, 0.01660757, 0.03021567, 0.04469237, 0.05916907, 0.07234287, 0.08291078, 0.08985968, 0.09217588, 0.08985968, 0.08291078, 0.07234287, 0.05916907, 0.04469237, 0.03021567, 0.01660757, 0.00488147, -0.00481793, -0.01234583, -0.01799173, -0.02190043, -0.02465103,
-0.02609863, -0.02421673, -0.02117663, -0.01683363, -0.01060863, -0.00221213, 0.00850057, 0.02138487, 0.03629587, 0.05236497, 0.06828937, 0.08291078, 0.09463698, 0.10230958, 0.10491538, 0.10230958, 0.09463698, 0.08291078, 0.06828937, 0.05236497, 0.03629587, 0.02138487, 0.00850057, -0.00221213, -0.01060863, -0.01683363, -0.02117663, -0.02421673,
-0.02595393, -0.02392713, -0.02074233, -0.01610973, -0.00945043, -0.00061973, 0.01081687, 0.02456977, 0.04034937, 0.05743187, 0.07436957, 0.08985968, 0.10230958, 0.11041658, 0.11316708, 0.11041658, 0.10230958, 0.08985968, 0.07436957, 0.05743187, 0.04034937, 0.02456977, 0.01081687, -0.00061973, -0.00945043, -0.01610973, -0.02074233, -0.02392713,
-0.02580913, -0.02378243, -0.02059753, -0.01582023, -0.00916093, -0.00004063, 0.01154077, 0.02558307, 0.04179697, 0.05916907, 0.07639627, 0.09217588, 0.10491538, 0.11316708, 0.11606248, 0.11316708, 0.10491538, 0.09217588, 0.07639627, 0.05916907, 0.04179697, 0.02558307, 0.01154077, -0.00004063, -0.00916093, -0.01582023, -0.02059753, -0.02378243,
-0.02595393, -0.02392713, -0.02074233, -0.01610973, -0.00945043, -0.00061973, 0.01081687, 0.02456977, 0.04034937, 0.05743187, 0.07436957, 0.08985968, 0.10230958, 0.11041658, 0.11316708, 0.11041658, 0.10230958, 0.08985968, 0.07436957, 0.05743187, 0.04034937, 0.02456977, 0.01081687, -0.00061973, -0.00945043, -0.01610973, -0.02074233, -0.02392713,
-0.02609863, -0.02421673, -0.02117663, -0.01683363, -0.01060863, -0.00221213, 0.00850057, 0.02138487, 0.03629587, 0.05236497, 0.06828937, 0.08291078, 0.09463698, 0.10230958, 0.10491538, 0.10230958, 0.09463698, 0.08291078, 0.06828937, 0.05236497, 0.03629587, 0.02138487, 0.00850057, -0.00221213, -0.01060863, -0.01683363, -0.02117663, -0.02421673,
-0.02624343, -0.02465103, -0.02190043, -0.01799173, -0.01234583, -0.00481793, 0.00488147, 0.01660757, 0.03021567, 0.04469237, 0.05916907, 0.07234287, 0.08291078, 0.08985968, 0.09217588, 0.08985968, 0.08291078, 0.07234287, 0.05916907, 0.04469237, 0.03021567, 0.01660757, 0.00488147, -0.00481793, -0.01234583, -0.01799173, -0.02190043, -0.02465103,
-0.02667773, -0.02508533, -0.02276903, -0.01929463, -0.01451733, -0.00785803, 0.00053847, 0.01081687, 0.02239827, 0.03499297, 0.04758767, 0.05916907, 0.06828937, 0.07436957, 0.07639627, 0.07436957, 0.06828937, 0.05916907, 0.04758767, 0.03499297, 0.02239827, 0.01081687, 0.00053847, -0.00785803, -0.01451733, -0.01929463, -0.02276903, -0.02508533,
-0.02696723, -0.02566433, -0.02378243, -0.02088703, -0.01683363, -0.01133243, -0.00423883, 0.00430237, 0.01400177, 0.02456977, 0.03499297, 0.04469237, 0.05236497, 0.05743187, 0.05916907, 0.05743187, 0.05236497, 0.04469237, 0.03499297, 0.02456977, 0.01400177, 0.00430237, -0.00423883, -0.01133243, -0.01683363, -0.02088703, -0.02378243, -0.02566433,
-0.02725683, -0.02624343, -0.02479573, -0.02247953, -0.01914983, -0.01480683, -0.00916093, -0.00221213, 0.00560527, 0.01400177, 0.02239827, 0.03021567, 0.03629587, 0.04034937, 0.04179697, 0.04034937, 0.03629587, 0.03021567, 0.02239827, 0.01400177, 0.00560527, -0.00221213, -0.00916093, -0.01480683, -0.01914983, -0.02247953, -0.02479573, -0.02624343,
-0.02769113, -0.02682253, -0.02566433, -0.02392713, -0.02132133, -0.01799173, -0.01364873, -0.00829233, -0.00221213, 0.00430237, 0.01081687, 0.01660757, 0.02138487, 0.02456977, 0.02558307, 0.02456977, 0.02138487, 0.01660757, 0.01081687, 0.00430237, -0.00221213, -0.00829233, -0.01364873, -0.01799173, -0.02132133, -0.02392713, -0.02566433, -0.02682253,
-0.02783583, -0.02740153, -0.02638823, -0.02508533, -0.02320333, -0.02074233, -0.01755743, -0.01364873, -0.00916093, -0.00423883, 0.00053847, 0.00488147, 0.00850057, 0.01081687, 0.01154077, 0.01081687, 0.00850057, 0.00488147, 0.00053847, -0.00423883, -0.00916093, -0.01364873, -0.01755743, -0.02074233, -0.02320333, -0.02508533, -0.02638823, -0.02740153,
-0.02812543, -0.02769113, -0.02711203, -0.02609863, -0.02479573, -0.02305853, -0.02074233, -0.01799173, -0.01480683, -0.01133243, -0.00785803, -0.00481793, -0.00221213, -0.00061973, -0.00004063, -0.00061973, -0.00221213, -0.00481793, -0.00785803, -0.01133243, -0.01480683, -0.01799173, -0.02074233, -0.02305853, -0.02479573, -0.02609863, -0.02711203, -0.02769113,
-0.02827013, -0.02798063, -0.02754633, -0.02696723, -0.02609863, -0.02479573, -0.02320333, -0.02132133, -0.01914983, -0.01683363, -0.01451733, -0.01234583, -0.01060863, -0.00945043, -0.00916093, -0.00945043, -0.01060863, -0.01234583, -0.01451733, -0.01683363, -0.01914983, -0.02132133, -0.02320333, -0.02479573, -0.02609863, -0.02696723, -0.02754633, -0.02798063,
-0.02841493, -0.02827013, -0.02798063, -0.02754633, -0.02696723, -0.02609863, -0.02508533, -0.02392713, -0.02247953, -0.02088703, -0.01929463, -0.01799173, -0.01683363, -0.01610973, -0.01582023, -0.01610973, -0.01683363, -0.01799173, -0.01929463, -0.02088703, -0.02247953, -0.02392713, -0.02508533, -0.02609863, -0.02696723, -0.02754633, -0.02798063, -0.02827013,
-0.02855973, -0.02841493, -0.02827013, -0.02798063, -0.02754633, -0.02711203, -0.02638823, -0.02566433, -0.02479573, -0.02378243, -0.02276903, -0.02190043, -0.02117663, -0.02074233, -0.02059753, -0.02074233, -0.02117663, -0.02190043, -0.02276903, -0.02378243, -0.02479573, -0.02566433, -0.02638823, -0.02711203, -0.02754633, -0.02798063, -0.02827013, -0.02841493,
-0.02855973, -0.02855973, -0.02841493, -0.02827013, -0.02798063, -0.02769113, -0.02740153, -0.02682253, -0.02624343, -0.02566433, -0.02508533, -0.02465103, -0.02421673, -0.02392713, -0.02378243, -0.02392713, -0.02421673, -0.02465103, -0.02508533, -0.02566433, -0.02624343, -0.02682253, -0.02740153, -0.02769113, -0.02798063, -0.02827013, -0.02841493, -0.02855973,
}

Definition at line 185 of file algo.h.

const double librealsense::rect_gaussian_dots_target_calculator::_thresh = 0.7
protected

Definition at line 216 of file algo.h.

const int librealsense::rect_gaussian_dots_target_calculator::_tsize = 28
protected

Definition at line 179 of file algo.h.

const int librealsense::rect_gaussian_dots_target_calculator::_tsize2 = _tsize * _tsize
protected

Definition at line 181 of file algo.h.

int librealsense::rect_gaussian_dots_target_calculator::_width = 0
protected

Definition at line 222 of file algo.h.

int librealsense::rect_gaussian_dots_target_calculator::_wt = 0
protected

Definition at line 226 of file algo.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:38