OpenCV  4.1.0
Open Source Computer Vision
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cv::rgbd::RgbdNormals Class Reference

#include <opencv2/rgbd/depth.hpp>

Inheritance diagram for cv::rgbd::RgbdNormals:
cv::Algorithm

Public Types

enum  RGBD_NORMALS_METHOD {
  RGBD_NORMALS_METHOD_FALS = 0,
  RGBD_NORMALS_METHOD_LINEMOD = 1,
  RGBD_NORMALS_METHOD_SRI = 2
}
 

Public Member Functions

 RgbdNormals ()
 
 RgbdNormals (int rows, int cols, int depth, InputArray K, int window_size=5, int method=RgbdNormals::RGBD_NORMALS_METHOD_FALS)
 
 ~RgbdNormals ()
 
int getCols () const
 
int getDepth () const
 
cv::Mat getK () const
 
int getMethod () const
 
int getRows () const
 
int getWindowSize () const
 
void initialize () const
 
void operator() (InputArray points, OutputArray normals) const
 
void setCols (int val)
 
void setDepth (int val)
 
void setK (const cv::Mat &val)
 
void setMethod (int val)
 
void setRows (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
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage.
 
void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 simplified API for language bindingsThis is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 

Static Public Member Functions

static Ptr< RgbdNormalscreate (int rows, int cols, int depth, InputArray K, int window_size=5, int method=RgbdNormals::RGBD_NORMALS_METHOD_FALS)
 
- Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp >
static Ptr< _Tp > load (const String &filename, const String &objname=String())
 Loads algorithm from the file.
 
template<typename _Tp >
static Ptr< _Tp > loadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String.
 
template<typename _Tp >
static Ptr< _Tp > read (const FileNode &fn)
 Reads algorithm from the file node.
 

Protected Member Functions

void initialize_normals_impl (int rows, int cols, int depth, const Mat &K, int window_size, int method) const
 
- Protected Member Functions inherited from cv::Algorithm
void writeFormat (FileStorage &fs) const
 

Protected Attributes

int cols_
 
int depth_
 
Mat K_
 
int method_
 
void * rgbd_normals_impl_
 
int rows_
 
int window_size_
 

Detailed Description

Object that can compute the normals in an image. It is an object as it can cache data for speed efficiency The implemented methods are either:

Member Enumeration Documentation

Enumerator
RGBD_NORMALS_METHOD_FALS 
RGBD_NORMALS_METHOD_LINEMOD 
RGBD_NORMALS_METHOD_SRI 

Constructor & Destructor Documentation

cv::rgbd::RgbdNormals::RgbdNormals ( )
inline
cv::rgbd::RgbdNormals::RgbdNormals ( int  rows,
int  cols,
int  depth,
InputArray  K,
int  window_size = 5,
int  method = RgbdNormals::RGBD_NORMALS_METHOD_FALS 
)

Constructor

Parameters
rowsthe number of rows of the depth image normals will be computed on
colsthe number of cols of the depth image normals will be computed on
depththe depth of the normals (only CV_32F or CV_64F)
Kthe calibration matrix to use
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
cv::rgbd::RgbdNormals::~RgbdNormals ( )

Member Function Documentation

static Ptr<RgbdNormals> cv::rgbd::RgbdNormals::create ( int  rows,
int  cols,
int  depth,
InputArray  K,
int  window_size = 5,
int  method = RgbdNormals::RGBD_NORMALS_METHOD_FALS 
)
static
Python:
retval=cv.rgbd.RgbdNormals_create(rows, cols, depth, K[, window_size[, method]])
int cv::rgbd::RgbdNormals::getCols ( ) const
inline
Python:
retval=cv.rgbd_RgbdNormals.getCols()
int cv::rgbd::RgbdNormals::getDepth ( ) const
inline
Python:
retval=cv.rgbd_RgbdNormals.getDepth()
cv::Mat cv::rgbd::RgbdNormals::getK ( ) const
inline
Python:
retval=cv.rgbd_RgbdNormals.getK()
int cv::rgbd::RgbdNormals::getMethod ( ) const
inline
Python:
retval=cv.rgbd_RgbdNormals.getMethod()
int cv::rgbd::RgbdNormals::getRows ( ) const
inline
Python:
retval=cv.rgbd_RgbdNormals.getRows()
int cv::rgbd::RgbdNormals::getWindowSize ( ) const
inline
Python:
retval=cv.rgbd_RgbdNormals.getWindowSize()
void cv::rgbd::RgbdNormals::initialize ( ) const
Python:
None=cv.rgbd_RgbdNormals.initialize()

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

void cv::rgbd::RgbdNormals::initialize_normals_impl ( int  rows,
int  cols,
int  depth,
const Mat K,
int  window_size,
int  method 
) const
protected
void cv::rgbd::RgbdNormals::operator() ( InputArray  points,
OutputArray  normals 
) 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
normalsa rows x cols x 3 matrix
void cv::rgbd::RgbdNormals::setCols ( int  val)
inline
Python:
None=cv.rgbd_RgbdNormals.setCols(val)
void cv::rgbd::RgbdNormals::setDepth ( int  val)
inline
Python:
None=cv.rgbd_RgbdNormals.setDepth(val)
void cv::rgbd::RgbdNormals::setK ( const cv::Mat val)
inline
Python:
None=cv.rgbd_RgbdNormals.setK(val)
void cv::rgbd::RgbdNormals::setMethod ( int  val)
inline
Python:
None=cv.rgbd_RgbdNormals.setMethod(val)
void cv::rgbd::RgbdNormals::setRows ( int  val)
inline
Python:
None=cv.rgbd_RgbdNormals.setRows(val)
void cv::rgbd::RgbdNormals::setWindowSize ( int  val)
inline
Python:
None=cv.rgbd_RgbdNormals.setWindowSize(val)

Member Data Documentation

int cv::rgbd::RgbdNormals::cols_
protected
int cv::rgbd::RgbdNormals::depth_
protected
Mat cv::rgbd::RgbdNormals::K_
protected
int cv::rgbd::RgbdNormals::method_
protected
void* cv::rgbd::RgbdNormals::rgbd_normals_impl_
mutableprotected
int cv::rgbd::RgbdNormals::rows_
protected
int cv::rgbd::RgbdNormals::window_size_
protected

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