ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::t::io::DepthNoiseSimulator Class Reference

#include <ImageIO.h>

Public Member Functions

 DepthNoiseSimulator (const std::string &noise_model_path)
 Constructor. More...
 
geometry::Image Simulate (const geometry::Image &im_src, float depth_scale=1000.0)
 Apply noise model to a depth image. More...
 
core::Tensor GetNoiseModel () const
 Return the noise model. More...
 
void EnableDeterministicDebugMode ()
 Enable deterministic debug mode. All normally distributed noise will be replaced by 0. More...
 

Detailed Description

Simulate depth image noise from a given noise distortion model. The distortion model is based on Teichman et. al. "Unsupervised intrinsic calibration of depth sensors via SLAM" RSS 2009. Also see Redwood dataset

Definition at line 79 of file ImageIO.h.

Constructor & Destructor Documentation

◆ DepthNoiseSimulator()

cloudViewer::t::io::DepthNoiseSimulator::DepthNoiseSimulator ( const std::string &  noise_model_path)
explicit

Constructor.

Parameters
noise_modelPath to the noise model file. See http://redwood-data.org/indoor/dataset.html for the format. Or, you may use one of our example datasets, e.g., RedwoodIndoorLivingRoom1.

Definition at line 99 of file ImageIO.cpp.

References cloudViewer::core::Float32, LogError, cloudViewer::utility::filesystem::CFile::Open(), cloudViewer::utility::filesystem::CFile::ReadLine(), and cloudViewer::core::Tensor::Zeros().

Member Function Documentation

◆ EnableDeterministicDebugMode()

void cloudViewer::t::io::DepthNoiseSimulator::EnableDeterministicDebugMode ( )
inline

Enable deterministic debug mode. All normally distributed noise will be replaced by 0.

Definition at line 104 of file ImageIO.h.

◆ GetNoiseModel()

core::Tensor cloudViewer::t::io::DepthNoiseSimulator::GetNoiseModel ( ) const
inline

Return the noise model.

Definition at line 100 of file ImageIO.h.

◆ Simulate()

geometry::Image cloudViewer::t::io::DepthNoiseSimulator::Simulate ( const geometry::Image im_src,
float  depth_scale = 1000.0 
)

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