RTAB-Map 0.23.10
Real-Time Appearance-Based Mapping
Loading...
Searching...
No Matches
clams::DiscreteDepthDistortionModel Class Reference
Collaboration diagram for clams::DiscreteDepthDistortionModel:

Public Member Functions

 DiscreteDepthDistortionModel (int width, int height, int bin_width=8, int bin_height=6, double bin_depth=2.0, int smoothing=1, double max_depth=10.0)
 
 DiscreteDepthDistortionModel (const DiscreteDepthDistortionModel &other)
 
DiscreteDepthDistortionModeloperator= (const DiscreteDepthDistortionModel &other)
 
void undistort (cv::Mat &depth) const
 
size_t accumulate (const cv::Mat &ground_truth, const cv::Mat &measurement)
 
void addExample (int v, int u, double ground_truth, double measurement)
 
void save (const std::string &path) const
 
void load (const std::string &path)
 
void serialize (std::ostream &out, bool ascii) const
 
void deserialize (std::istream &in, bool ascii)
 
cv::Mat visualize (const std::string &path="") const
 
int getWidth () const
 
int getHeight () const
 
size_t getTrainingSamples () const
 
bool isValid () const
 

Static Public Member Functions

static std::set< size_t > getDivisors (const size_t &num)
 
static size_t getClosestToRef (const std::set< size_t > &divisors, const double &ref)
 
static void getBinSize (const size_t &width, const size_t &height, size_t &bin_width, size_t &bin_height)
 

Protected Member Functions

void deleteFrustums ()
 
DiscreteFrustumfrustum (int y, int x)
 
const DiscreteFrustumfrustum (int y, int x) const
 

Protected Attributes

int width_
 Image width.
 
int height_
 Image height.
 
int bin_width_
 Width of each bin in pixels.
 
int bin_height_
 Height of each bin in pixels.
 
double bin_depth_
 Depth of each bin in meters.
 
int num_bins_x_
 
int num_bins_y_
 
std::vector< std::vector< DiscreteFrustum * > > frustums_
 frustums_[y][x]
 
size_t training_samples_
 
UMutex mutex_
 

Detailed Description

Definition at line 68 of file discrete_depth_distortion_model.h.

Constructor & Destructor Documentation

◆ DiscreteDepthDistortionModel()

clams::DiscreteDepthDistortionModel::DiscreteDepthDistortionModel ( )
inline

Definition at line 81 of file discrete_depth_distortion_model.h.

Member Function Documentation

◆ accumulate()

size_t clams::DiscreteDepthDistortionModel::accumulate ( const cv::Mat &  ground_truth,
const cv::Mat &  measurement 
)

Returns the number of training examples it used from this pair. Thread-safe.

◆ getWidth()

int clams::DiscreteDepthDistortionModel::getWidth ( ) const
inline

Definition at line 106 of file discrete_depth_distortion_model.h.

◆ getHeight()

int clams::DiscreteDepthDistortionModel::getHeight ( ) const
inline

Definition at line 107 of file discrete_depth_distortion_model.h.

◆ getTrainingSamples()

size_t clams::DiscreteDepthDistortionModel::getTrainingSamples ( ) const
inline

Definition at line 108 of file discrete_depth_distortion_model.h.

◆ isValid()

bool clams::DiscreteDepthDistortionModel::isValid ( ) const
inline

Definition at line 109 of file discrete_depth_distortion_model.h.

Member Data Documentation

◆ width_

int clams::DiscreteDepthDistortionModel::width_
protected

Image width.

Definition at line 116 of file discrete_depth_distortion_model.h.

◆ height_

int clams::DiscreteDepthDistortionModel::height_
protected

Image height.

Definition at line 118 of file discrete_depth_distortion_model.h.

◆ bin_width_

int clams::DiscreteDepthDistortionModel::bin_width_
protected

Width of each bin in pixels.

Definition at line 120 of file discrete_depth_distortion_model.h.

◆ bin_height_

int clams::DiscreteDepthDistortionModel::bin_height_
protected

Height of each bin in pixels.

Definition at line 122 of file discrete_depth_distortion_model.h.

◆ bin_depth_

double clams::DiscreteDepthDistortionModel::bin_depth_
protected

Depth of each bin in meters.

Definition at line 124 of file discrete_depth_distortion_model.h.

◆ num_bins_x_

int clams::DiscreteDepthDistortionModel::num_bins_x_
protected

Definition at line 125 of file discrete_depth_distortion_model.h.

◆ num_bins_y_

int clams::DiscreteDepthDistortionModel::num_bins_y_
protected

Definition at line 126 of file discrete_depth_distortion_model.h.

◆ frustums_

std::vector< std::vector<DiscreteFrustum*> > clams::DiscreteDepthDistortionModel::frustums_
protected

frustums_[y][x]

Definition at line 128 of file discrete_depth_distortion_model.h.

◆ training_samples_

size_t clams::DiscreteDepthDistortionModel::training_samples_
protected

Definition at line 130 of file discrete_depth_distortion_model.h.

◆ mutex_

UMutex clams::DiscreteDepthDistortionModel::mutex_
protected

Definition at line 136 of file discrete_depth_distortion_model.h.


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