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

#include <opencv2/rgbd/depth.hpp>

Inheritance diagram for cv::rgbd::ICPOdometry:
cv::rgbd::Odometry cv::Algorithm

Public Member Functions

 ICPOdometry ()
 
 ICPOdometry (const Mat &cameraMatrix, float minDepth=Odometry::DEFAULT_MIN_DEPTH(), float maxDepth=Odometry::DEFAULT_MAX_DEPTH(), float maxDepthDiff=Odometry::DEFAULT_MAX_DEPTH_DIFF(), float maxPointsPart=Odometry::DEFAULT_MAX_POINTS_PART(), const std::vector< int > &iterCounts=std::vector< int >(), int transformType=Odometry::RIGID_BODY_MOTION)
 
cv::Mat getCameraMatrix () const CV_OVERRIDE
 
cv::Mat getIterationCounts () const
 
double getMaxDepth () const
 
double getMaxDepthDiff () const
 
double getMaxPointsPart () const
 
double getMaxRotation () const
 
double getMaxTranslation () const
 
double getMinDepth () const
 
Ptr< RgbdNormalsgetNormalsComputer () const
 
int getTransformType () const CV_OVERRIDE
 
virtual Size prepareFrameCache (Ptr< OdometryFrame > &frame, int cacheType) const CV_OVERRIDE
 
void setCameraMatrix (const cv::Mat &val) CV_OVERRIDE
 
void setIterationCounts (const cv::Mat &val)
 
void setMaxDepth (double val)
 
void setMaxDepthDiff (double val)
 
void setMaxPointsPart (double val)
 
void setMaxRotation (double val)
 
void setMaxTranslation (double val)
 
void setMinDepth (double val)
 
void setTransformType (int val) CV_OVERRIDE
 
- Public Member Functions inherited from cv::rgbd::Odometry
bool compute (const Mat &srcImage, const Mat &srcDepth, const Mat &srcMask, const Mat &dstImage, const Mat &dstDepth, const Mat &dstMask, OutputArray Rt, const Mat &initRt=Mat()) const
 
bool compute (Ptr< OdometryFrame > &srcFrame, Ptr< OdometryFrame > &dstFrame, OutputArray Rt, const Mat &initRt=Mat()) const
 
- 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< ICPOdometrycreate (const Mat &cameraMatrix=Mat(), float minDepth=Odometry::DEFAULT_MIN_DEPTH(), float maxDepth=Odometry::DEFAULT_MAX_DEPTH(), float maxDepthDiff=Odometry::DEFAULT_MAX_DEPTH_DIFF(), float maxPointsPart=Odometry::DEFAULT_MAX_POINTS_PART(), const std::vector< int > &iterCounts=std::vector< int >(), int transformType=Odometry::RIGID_BODY_MOTION)
 
- Static Public Member Functions inherited from cv::rgbd::Odometry
static Ptr< Odometrycreate (const String &odometryType)
 
static float DEFAULT_MAX_DEPTH ()
 
static float DEFAULT_MAX_DEPTH_DIFF ()
 
static float DEFAULT_MAX_POINTS_PART ()
 
static float DEFAULT_MAX_ROTATION ()
 
static float DEFAULT_MAX_TRANSLATION ()
 
static float DEFAULT_MIN_DEPTH ()
 
- 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

virtual void checkParams () const CV_OVERRIDE
 
virtual bool computeImpl (const Ptr< OdometryFrame > &srcFrame, const Ptr< OdometryFrame > &dstFrame, OutputArray Rt, const Mat &initRt) const CV_OVERRIDE
 

Protected Attributes

Mat cameraMatrix
 
Mat iterCounts
 
double maxDepth
 
double maxDepthDiff
 
double maxPointsPart
 
double maxRotation
 
double maxTranslation
 
double minDepth
 
Ptr< RgbdNormalsnormalsComputer
 
int transformType
 

Additional Inherited Members

- Public Types inherited from cv::rgbd::Odometry
enum  {
  ROTATION = 1,
  TRANSLATION = 2,
  RIGID_BODY_MOTION = 4
}
 

Detailed Description

Odometry based on the paper "KinectFusion: Real-Time Dense Surface Mapping and Tracking", Richard A. Newcombe, Andrew Fitzgibbon, at al, SIGGRAPH, 2011.

Constructor & Destructor Documentation

cv::rgbd::ICPOdometry::ICPOdometry ( )
cv::rgbd::ICPOdometry::ICPOdometry ( const Mat cameraMatrix,
float  minDepth = Odometry::DEFAULT_MIN_DEPTH(),
float  maxDepth = Odometry::DEFAULT_MAX_DEPTH(),
float  maxDepthDiff = Odometry::DEFAULT_MAX_DEPTH_DIFF(),
float  maxPointsPart = Odometry::DEFAULT_MAX_POINTS_PART(),
const std::vector< int > &  iterCounts = std::vector< int >(),
int  transformType = Odometry::RIGID_BODY_MOTION 
)

Constructor.

Parameters
cameraMatrixCamera matrix
minDepthPixels with depth less than minDepth will not be used
maxDepthPixels with depth larger than maxDepth will not be used
maxDepthDiffCorrespondences between pixels of two given frames will be filtered out if their depth difference is larger than maxDepthDiff
maxPointsPartThe method uses a random pixels subset of size frameWidth x frameHeight x pointsPart
iterCountsCount of iterations on each pyramid level.
transformTypeClass of trasformation

Member Function Documentation

virtual void cv::rgbd::ICPOdometry::checkParams ( ) const
protectedvirtual

Implements cv::rgbd::Odometry.

virtual bool cv::rgbd::ICPOdometry::computeImpl ( const Ptr< OdometryFrame > &  srcFrame,
const Ptr< OdometryFrame > &  dstFrame,
OutputArray  Rt,
const Mat initRt 
) const
protectedvirtual

Implements cv::rgbd::Odometry.

static Ptr<ICPOdometry> cv::rgbd::ICPOdometry::create ( const Mat cameraMatrix = Mat(),
float  minDepth = Odometry::DEFAULT_MIN_DEPTH(),
float  maxDepth = Odometry::DEFAULT_MAX_DEPTH(),
float  maxDepthDiff = Odometry::DEFAULT_MAX_DEPTH_DIFF(),
float  maxPointsPart = Odometry::DEFAULT_MAX_POINTS_PART(),
const std::vector< int > &  iterCounts = std::vector< int >(),
int  transformType = Odometry::RIGID_BODY_MOTION 
)
static
Python:
retval=cv.rgbd.ICPOdometry_create([, cameraMatrix[, minDepth[, maxDepth[, maxDepthDiff[, maxPointsPart[, iterCounts[, transformType]]]]]]])
cv::Mat cv::rgbd::ICPOdometry::getCameraMatrix ( ) const
inlinevirtual
Python:
retval=cv.rgbd_ICPOdometry.getCameraMatrix()
See Also
setCameraMatrix

Implements cv::rgbd::Odometry.

cv::Mat cv::rgbd::ICPOdometry::getIterationCounts ( ) const
inline
Python:
retval=cv.rgbd_ICPOdometry.getIterationCounts()
double cv::rgbd::ICPOdometry::getMaxDepth ( ) const
inline
Python:
retval=cv.rgbd_ICPOdometry.getMaxDepth()
double cv::rgbd::ICPOdometry::getMaxDepthDiff ( ) const
inline
Python:
retval=cv.rgbd_ICPOdometry.getMaxDepthDiff()
double cv::rgbd::ICPOdometry::getMaxPointsPart ( ) const
inline
Python:
retval=cv.rgbd_ICPOdometry.getMaxPointsPart()
double cv::rgbd::ICPOdometry::getMaxRotation ( ) const
inline
Python:
retval=cv.rgbd_ICPOdometry.getMaxRotation()
double cv::rgbd::ICPOdometry::getMaxTranslation ( ) const
inline
Python:
retval=cv.rgbd_ICPOdometry.getMaxTranslation()
double cv::rgbd::ICPOdometry::getMinDepth ( ) const
inline
Python:
retval=cv.rgbd_ICPOdometry.getMinDepth()
Ptr<RgbdNormals> cv::rgbd::ICPOdometry::getNormalsComputer ( ) const
inline
Python:
retval=cv.rgbd_ICPOdometry.getNormalsComputer()
int cv::rgbd::ICPOdometry::getTransformType ( ) const
inlinevirtual
Python:
retval=cv.rgbd_ICPOdometry.getTransformType()
See Also
setTransformType

Implements cv::rgbd::Odometry.

virtual Size cv::rgbd::ICPOdometry::prepareFrameCache ( Ptr< OdometryFrame > &  frame,
int  cacheType 
) const
virtual
Python:
retval=cv.rgbd_ICPOdometry.prepareFrameCache(frame, cacheType)

Prepare a cache for the frame. The function checks the precomputed/passed data (throws the error if this data does not satisfy) and computes all remaining cache data needed for the frame. Returned size is a resolution of the prepared frame.

Parameters
frameThe odometry which will process the frame.
cacheTypeThe cache type: CACHE_SRC, CACHE_DST or CACHE_ALL.

Reimplemented from cv::rgbd::Odometry.

void cv::rgbd::ICPOdometry::setCameraMatrix ( const cv::Mat val)
inlinevirtual
Python:
None=cv.rgbd_ICPOdometry.setCameraMatrix(val)
See Also
getCameraMatrix

Implements cv::rgbd::Odometry.

void cv::rgbd::ICPOdometry::setIterationCounts ( const cv::Mat val)
inline
Python:
None=cv.rgbd_ICPOdometry.setIterationCounts(val)
void cv::rgbd::ICPOdometry::setMaxDepth ( double  val)
inline
Python:
None=cv.rgbd_ICPOdometry.setMaxDepth(val)
void cv::rgbd::ICPOdometry::setMaxDepthDiff ( double  val)
inline
Python:
None=cv.rgbd_ICPOdometry.setMaxDepthDiff(val)
void cv::rgbd::ICPOdometry::setMaxPointsPart ( double  val)
inline
Python:
None=cv.rgbd_ICPOdometry.setMaxPointsPart(val)
void cv::rgbd::ICPOdometry::setMaxRotation ( double  val)
inline
Python:
None=cv.rgbd_ICPOdometry.setMaxRotation(val)
void cv::rgbd::ICPOdometry::setMaxTranslation ( double  val)
inline
Python:
None=cv.rgbd_ICPOdometry.setMaxTranslation(val)
void cv::rgbd::ICPOdometry::setMinDepth ( double  val)
inline
Python:
None=cv.rgbd_ICPOdometry.setMinDepth(val)
void cv::rgbd::ICPOdometry::setTransformType ( int  val)
inlinevirtual
Python:
None=cv.rgbd_ICPOdometry.setTransformType(val)
See Also
getTransformType

Implements cv::rgbd::Odometry.

Member Data Documentation

Mat cv::rgbd::ICPOdometry::cameraMatrix
protected
Mat cv::rgbd::ICPOdometry::iterCounts
protected
double cv::rgbd::ICPOdometry::maxDepth
protected
double cv::rgbd::ICPOdometry::maxDepthDiff
protected
double cv::rgbd::ICPOdometry::maxPointsPart
protected
double cv::rgbd::ICPOdometry::maxRotation
protected
double cv::rgbd::ICPOdometry::maxTranslation
protected
double cv::rgbd::ICPOdometry::minDepth
protected
Ptr<RgbdNormals> cv::rgbd::ICPOdometry::normalsComputer
mutableprotected
int cv::rgbd::ICPOdometry::transformType
protected

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