#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>
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 > §ion_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_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) |
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) |
#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.
|
static |
Definition at line 605 of file valid-scene.cpp.
|
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.
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.
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.
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.
double gaussian_calc | ( | std::vector< T > const & | sub_image, |
std::vector< double > const & | mask | ||
) |
Definition at line 552 of file valid-scene.cpp.
|
static |
Definition at line 615 of file valid-scene.cpp.
|
static |
Definition at line 383 of file valid-scene.cpp.
|
static |
Definition at line 628 of file valid-scene.cpp.