OpenCV  4.10.0-dev
Open Source Computer Vision
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cv::rgbd::DepthCleaner Class Reference

#include <opencv2/rgbd/depth.hpp>

Collaboration diagram for cv::rgbd::DepthCleaner:

Public Types

enum  DEPTH_CLEANER_METHOD { DEPTH_CLEANER_NIL }
 

Public Member Functions

 DepthCleaner ()
 
 DepthCleaner (int depth, int window_size=5, int method=DepthCleaner::DEPTH_CLEANER_NIL)
 
 ~DepthCleaner ()
 
int getDepth () const
 
int getMethod () const
 
int getWindowSize () const
 
void initialize () const
 
void operator() (InputArray points, OutputArray depth) const
 
void setDepth (int val)
 
void setMethod (int val)
 
void setWindowSize (int val)
 
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 Clears the algorithm state.
 
virtual bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 Reads algorithm parameters from a file storage.
 
virtual void save (const String &filename) const
 
void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage.
 
void write (FileStorage &fs, const String &name) const
 

Static Public Member Functions

static Ptr< DepthCleanercreate (int depth, int window_size=5, int method=DepthCleaner::DEPTH_CLEANER_NIL)
 
- Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp >
static Ptr< _Tpload (const String &filename, const String &objname=String())
 Loads algorithm from the file.
 
template<typename _Tp >
static Ptr< _TploadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String.
 
template<typename _Tp >
static Ptr< _Tpread (const FileNode &fn)
 Reads algorithm from the file node.
 

Protected Member Functions

void initialize_cleaner_impl () const
 
- Protected Member Functions inherited from cv::Algorithm
void writeFormat (FileStorage &fs) const
 

Protected Attributes

int depth_
 
void * depth_cleaner_impl_
 
int method_
 
int window_size_
 

Detailed Description

Object that can clean a noisy depth image

Member Enumeration Documentation

◆ DEPTH_CLEANER_METHOD

NIL method is from Modeling Kinect Sensor Noise for Improved 3d Reconstruction and Tracking by C. Nguyen, S. Izadi, D. Lovel

Enumerator
DEPTH_CLEANER_NIL 

Constructor & Destructor Documentation

◆ DepthCleaner() [1/2]

cv::rgbd::DepthCleaner::DepthCleaner ( )
inline

◆ DepthCleaner() [2/2]

cv::rgbd::DepthCleaner::DepthCleaner ( int  depth,
int  window_size = 5,
int  method = DepthCleaner::DEPTH_CLEANER_NIL 
)

Constructor

Parameters
depththe depth of the normals (only CV_32F or CV_64F)
window_sizethe window size to compute the normals: can only be 1,3,5 or 7
methodone of the methods to use: RGBD_NORMALS_METHOD_SRI, RGBD_NORMALS_METHOD_FALS

◆ ~DepthCleaner()

cv::rgbd::DepthCleaner::~DepthCleaner ( )

Member Function Documentation

◆ create()

static Ptr< DepthCleaner > cv::rgbd::DepthCleaner::create ( int  depth,
int  window_size = 5,
int  method = DepthCleaner::DEPTH_CLEANER_NIL 
)
static
Python:
cv.rgbd.DepthCleaner.create(depth[, window_size[, method]]) -> retval
cv.rgbd.DepthCleaner_create(depth[, window_size[, method]]) -> retval

◆ getDepth()

int cv::rgbd::DepthCleaner::getDepth ( ) const
inline
Python:
cv.rgbd.DepthCleaner.getDepth() -> retval

◆ getMethod()

int cv::rgbd::DepthCleaner::getMethod ( ) const
inline
Python:
cv.rgbd.DepthCleaner.getMethod() -> retval

◆ getWindowSize()

int cv::rgbd::DepthCleaner::getWindowSize ( ) const
inline
Python:
cv.rgbd.DepthCleaner.getWindowSize() -> retval

◆ initialize()

void cv::rgbd::DepthCleaner::initialize ( ) const
Python:
cv.rgbd.DepthCleaner.initialize() -> None

Initializes some data that is cached for later computation If that function is not called, it will be called the first time normals are computed

◆ initialize_cleaner_impl()

void cv::rgbd::DepthCleaner::initialize_cleaner_impl ( ) const
protected

◆ operator()()

void cv::rgbd::DepthCleaner::operator() ( InputArray  points,
OutputArray  depth 
) const

Given a set of 3d points in a depth image, compute the normals at each point.

Parameters
pointsa rows x cols x 3 matrix of CV_32F/CV64F or a rows x cols x 1 CV_U16S
deptha rows x cols matrix of the cleaned up depth

◆ setDepth()

void cv::rgbd::DepthCleaner::setDepth ( int  val)
inline
Python:
cv.rgbd.DepthCleaner.setDepth(val) -> None

◆ setMethod()

void cv::rgbd::DepthCleaner::setMethod ( int  val)
inline
Python:
cv.rgbd.DepthCleaner.setMethod(val) -> None

◆ setWindowSize()

void cv::rgbd::DepthCleaner::setWindowSize ( int  val)
inline
Python:
cv.rgbd.DepthCleaner.setWindowSize(val) -> None

Member Data Documentation

◆ depth_

int cv::rgbd::DepthCleaner::depth_
protected

◆ depth_cleaner_impl_

void* cv::rgbd::DepthCleaner::depth_cleaner_impl_
mutableprotected

◆ method_

int cv::rgbd::DepthCleaner::method_
protected

◆ window_size_

int cv::rgbd::DepthCleaner::window_size_
protected

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