Macros | Functions
valid-scene.cpp File Reference
#include "optimizer.h"
#include <librealsense2/rsutil.h>
#include <algorithm>
#include <array>
#include "coeffs.h"
#include "cost.h"
#include "debug.h"
#include <math.h>
#include <numeric>
Include dependency graph for valid-scene.cpp:

Go to the source code of this file.

Macros

#define GAUSS_CONV_COLUMNS   4
 
#define GAUSS_CONV_CORNERS   16
 
#define GAUSS_CONV_ROWS   4
 

Functions

static void abs_values (std::vector< double > &vec_in)
 
static bool check_edge_distribution (std::vector< double > &sum_weights_per_section, double const min_min_max_ratio, double const min_weighted_edge_per_section, double &min_max_ratio)
 
bool check_edges_dir_spread (const std::vector< double > &directions, const std::vector< double > &subpixels_x, const std::vector< double > &subpixels_y, size_t width, size_t height, const params &p)
 
bool check_edges_spatial_spread (const std::vector< byte > &section_map, size_t width, size_t height, double th, size_t n_sections, size_t min_section_with_enough_edges)
 
bool check_saturation (const std::vector< ir_t > &ir_frame, size_t width, size_t height, const params &p)
 
template<class T >
uint8_t dilation_calc (std::vector< T > const &sub_image, std::vector< uint8_t > const &mask)
 
template<class T >
std::vector< uint8_tdilation_convolution (std::vector< T > const &image, size_t image_width, size_t image_height, size_t mask_width, size_t mask_height, std::function< uint8_t(std::vector< T > const &sub_image) > convolution_operation)
 
template<class T >
std::vector< double > gauss_convolution (std::vector< T > const &image, size_t image_width, size_t image_height, size_t mask_width, size_t mask_height, std::function< double(std::vector< T > const &sub_image) > convolution_operation)
 
template<class T >
double gaussian_calc (std::vector< T > const &sub_image, std::vector< double > const &mask)
 
static void gaussian_dilation_mask (std::vector< double > &gauss_diff, std::vector< uint8_t > const &dilation_mask)
 
static bool is_grad_dir_balanced (std::vector< double > const &weights, std::vector< double > const &directions, params const &_params, std::vector< double > *p_weights_per_dir, double *p_dir_ratio1)
 
static size_t move_suspected_mask (std::vector< uint8_t > &move_suspect, std::vector< double > const &gauss_diff_masked, double const movement_threshold)
 

Macro Definition Documentation

#define GAUSS_CONV_COLUMNS   4

Definition at line 15 of file valid-scene.cpp.

#define GAUSS_CONV_CORNERS   16

Definition at line 16 of file valid-scene.cpp.

#define GAUSS_CONV_ROWS   4

Definition at line 14 of file valid-scene.cpp.

Function Documentation

static void abs_values ( std::vector< double > &  vec_in)
static

Definition at line 605 of file valid-scene.cpp.

static bool check_edge_distribution ( std::vector< double > &  sum_weights_per_section,
double const  min_min_max_ratio,
double const  min_weighted_edge_per_section,
double &  min_max_ratio 
)
static

Definition at line 286 of file valid-scene.cpp.

bool check_edges_dir_spread ( const std::vector< double > &  directions,
const std::vector< double > &  subpixels_x,
const std::vector< double > &  subpixels_y,
size_t  width,
size_t  height,
const params p 
)

Definition at line 764 of file valid-scene.cpp.

bool check_edges_spatial_spread ( const std::vector< byte > &  section_map,
size_t  width,
size_t  height,
double  th,
size_t  n_sections,
size_t  min_section_with_enough_edges 
)

Definition at line 896 of file valid-scene.cpp.

bool check_saturation ( const std::vector< ir_t > &  ir_frame,
size_t  width,
size_t  height,
const params p 
)

Definition at line 872 of file valid-scene.cpp.

template<class T >
uint8_t dilation_calc ( std::vector< T > const &  sub_image,
std::vector< uint8_t > const &  mask 
)

Definition at line 519 of file valid-scene.cpp.

template<class T >
std::vector<uint8_t> dilation_convolution ( std::vector< T > const &  image,
size_t  image_width,
size_t  image_height,
size_t  mask_width,
size_t  mask_height,
std::function< uint8_t(std::vector< T > const &sub_image) >  convolution_operation 
)

Definition at line 193 of file valid-scene.cpp.

template<class T >
std::vector<double> gauss_convolution ( std::vector< T > const &  image,
size_t  image_width,
size_t  image_height,
size_t  mask_width,
size_t  mask_height,
std::function< double(std::vector< T > const &sub_image) >  convolution_operation 
)

Definition at line 23 of file valid-scene.cpp.

template<class T >
double gaussian_calc ( std::vector< T > const &  sub_image,
std::vector< double > const &  mask 
)

Definition at line 552 of file valid-scene.cpp.

static void gaussian_dilation_mask ( std::vector< double > &  gauss_diff,
std::vector< uint8_t > const &  dilation_mask 
)
static

Definition at line 615 of file valid-scene.cpp.

static bool is_grad_dir_balanced ( std::vector< double > const &  weights,
std::vector< double > const &  directions,
params const &  _params,
std::vector< double > *  p_weights_per_dir,
double *  p_dir_ratio1 
)
static

Definition at line 383 of file valid-scene.cpp.

static size_t move_suspected_mask ( std::vector< uint8_t > &  move_suspect,
std::vector< double > const &  gauss_diff_masked,
double const  movement_threshold 
)
static

Definition at line 628 of file valid-scene.cpp.



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