OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项
cv::rgbd::RgbdOdometry 类参考

#include <opencv2/rgbd/depth.hpp>

cv::rgbd::RgbdOdometry 的协作图

公有成员函数

 RgbdOdometry ()
 
 RgbdOdometry (const Mat &cameraMatrix, float minDepth=Odometry::DEFAULT_MIN_DEPTH(), float maxDepth=Odometry::DEFAULT_MAX_DEPTH(), float maxDepthDiff=Odometry::DEFAULT_MAX_DEPTH_DIFF(), const std::vector< int > &iterCounts=std::vector< int >(), const std::vector< float > &minGradientMagnitudes=std::vector< float >(), float maxPointsPart=Odometry::DEFAULT_MAX_POINTS_PART(), 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
 
cv::Mat getMinGradientMagnitudes () 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 setMinGradientMagnitudes (const cv::Mat &val)
 
void setTransformType (int val) CV_OVERRIDE
 
- 继承自 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
 
- 继承自 cv::Algorithm 的公有成员函数
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 清除算法状态。
 
virtual bool empty () const
 如果 算法 为空(例如,在开始时或读取失败后),则返回 true。
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 从文件存储中读取算法参数。
 
virtual void save (const String &filename) const
 
void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 
virtual void write (FileStorage &fs) const
 将算法参数存储到文件存储中。
 
void write (FileStorage &fs, const String &name) const
 

静态公有成员函数

static Ptr< RgbdOdometrycreate (const Mat &cameraMatrix=Mat(), float minDepth=Odometry::DEFAULT_MIN_DEPTH(), float maxDepth=Odometry::DEFAULT_MAX_DEPTH(), float maxDepthDiff=Odometry::DEFAULT_MAX_DEPTH_DIFF(), const std::vector< int > &iterCounts=std::vector< int >(), const std::vector< float > &minGradientMagnitudes=std::vector< float >(), float maxPointsPart=Odometry::DEFAULT_MAX_POINTS_PART(), int transformType=Odometry::RIGID_BODY_MOTION)
 
- 继承自 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 ()
 
- 继承自 cv::Algorithm 的静态公有成员函数
template<typename _Tp >
static Ptr< _Tpload (const String &filename, const String &objname=String())
 从文件中加载算法。
 
template<typename _Tp >
static Ptr< _TploadFromString (const String &strModel, const String &objname=String())
 从字符串加载算法。
 
template<typename _Tp >
static Ptr< _Tpread (const FileNode &fn)
 从文件节点读取算法。
 

保护成员函数

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
 
- 继承自 cv::rgbd::Odometry 的保护成员函数
- 继承自 cv::Algorithm 的保护成员函数
void writeFormat (FileStorage &fs) const
 

保护属性

Mat cameraMatrix
 
Mat iterCounts
 
double maxDepth
 
double maxDepthDiff
 
double maxPointsPart
 
double maxRotation
 
double maxTranslation
 
double minDepth
 
Mat minGradientMagnitudes
 
int transformType
 

附加继承成员

- 继承自 cv::rgbd::Odometry 的公有类型
枚举  {
  旋转 = 1 ,
  平移 = 2 ,
  刚体运动 = 4
}
 

详细描述

基于 F. Steinbucker, J. Strum, D. Cremers, ICCV, 2011 论文“Real-Time Visual Odometry from Dense RGB-D Images”的 Odometry

构造函数 & 析构函数文档

◆ RgbdOdometry() [1/2]

cv::rgbd::RgbdOdometry::RgbdOdometry ( )

◆ RgbdOdometry() [2/2]

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

构造函数。

参数
cameraMatrix相机矩阵
minDepth深度小于 minDepth 的像素将不被使用(单位:米)
maxDepth深度大于 maxDepth 的像素将不被使用(单位:米)
maxDepthDiff如果两个给定帧之间像素的深度差大于 maxDepthDiff,则对应的像素将被过滤掉(单位:米)
iterCounts每个金字塔层级的迭代次数。
minGradientMagnitudes对于每个金字塔层级,如果像素的梯度幅度小于 minGradientMagnitudes[level],则这些像素将被过滤掉。
maxPointsPart该方法使用大小为 frameWidth x frameHeight x pointsPart 的随机像素子集
transformType变换类型

成员函数文档

◆ checkParams()

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

实现自 cv::rgbd::Odometry

◆ computeImpl()

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

实现自 cv::rgbd::Odometry

◆ create()

static Ptr< RgbdOdometry > cv::rgbd::RgbdOdometry::create ( const Mat & cameraMatrix = Mat(),
float minDepth = Odometry::DEFAULT_MIN_DEPTH(),
float maxDepth = Odometry::DEFAULT_MAX_DEPTH(),
float maxDepthDiff = Odometry::DEFAULT_MAX_DEPTH_DIFF(),
const std::vector< int > & iterCounts = std::vector< int >(),
const std::vector< float > & minGradientMagnitudes = std::vector< float >(),
float maxPointsPart = Odometry::DEFAULT_MAX_POINTS_PART(),
int transformType = Odometry::RIGID_BODY_MOTION )
static
Python
cv.rgbd.RgbdOdometry.create([, cameraMatrix[, minDepth[, maxDepth[, maxDepthDiff[, iterCounts[, minGradientMagnitudes[, maxPointsPart[, transformType]]]]]]]]) -> retval
cv.rgbd.RgbdOdometry_create([, cameraMatrix[, minDepth[, maxDepth[, maxDepthDiff[, iterCounts[, minGradientMagnitudes[, maxPointsPart[, transformType]]]]]]]]) -> retval

◆ getCameraMatrix()

cv::Mat cv::rgbd::RgbdOdometry::getCameraMatrix ( ) const
inlinevirtual
Python
cv.rgbd.RgbdOdometry.getCameraMatrix() -> retval
另请参见
setCameraMatrix

实现自 cv::rgbd::Odometry

◆ getIterationCounts()

cv::Mat cv::rgbd::RgbdOdometry::getIterationCounts ( ) const
inline
Python
cv.rgbd.RgbdOdometry.getIterationCounts() -> retval

◆ getMaxDepth()

double cv::rgbd::RgbdOdometry::getMaxDepth ( ) const
inline
Python
cv.rgbd.RgbdOdometry.getMaxDepth() -> retval

◆ getMaxDepthDiff()

double cv::rgbd::RgbdOdometry::getMaxDepthDiff ( ) const
inline
Python
cv.rgbd.RgbdOdometry.getMaxDepthDiff() -> retval

◆ getMaxPointsPart()

double cv::rgbd::RgbdOdometry::getMaxPointsPart ( ) const
inline
Python
cv.rgbd.RgbdOdometry.getMaxPointsPart() -> retval

◆ getMaxRotation()

double cv::rgbd::RgbdOdometry::getMaxRotation ( ) const
inline
Python
cv.rgbd.RgbdOdometry.getMaxRotation() -> retval

◆ getMaxTranslation()

double cv::rgbd::RgbdOdometry::getMaxTranslation ( ) const
inline
Python
cv.rgbd.RgbdOdometry.getMaxTranslation() -> retval

◆ getMinDepth()

double cv::rgbd::RgbdOdometry::getMinDepth ( ) const
inline
Python
cv.rgbd.RgbdOdometry.getMinDepth() -> retval

◆ getMinGradientMagnitudes()

cv::Mat cv::rgbd::RgbdOdometry::getMinGradientMagnitudes ( ) const
inline
Python
cv.rgbd.RgbdOdometry.getMinGradientMagnitudes() -> retval

◆ getTransformType()

int cv::rgbd::RgbdOdometry::getTransformType ( ) const
inlinevirtual
Python
cv.rgbd.RgbdOdometry.getTransformType() -> retval
另请参见
setTransformType

实现自 cv::rgbd::Odometry

◆ prepareFrameCache()

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

为帧准备一个缓存。此函数检查预计算/传入的数据(如果数据不符合要求则抛出错误)并计算帧所需的所有剩余缓存数据。返回的大小是准备好的帧的分辨率。

参数
frame将处理帧的里程计。
cacheType缓存类型:CACHE_SRC、CACHE_DST 或 CACHE_ALL。

重写自 cv::rgbd::Odometry

◆ setCameraMatrix()

void cv::rgbd::RgbdOdometry::setCameraMatrix ( const cv::Mat & val)
inlinevirtual
Python
cv.rgbd.RgbdOdometry.setCameraMatrix(val) ->

另请参见
getCameraMatrix

实现自 cv::rgbd::Odometry

◆ setIterationCounts()

void cv::rgbd::RgbdOdometry::setIterationCounts ( const cv::Mat & val)
inline
Python
cv.rgbd.RgbdOdometry.setIterationCounts(val) ->

◆ setMaxDepth()

void cv::rgbd::RgbdOdometry::setMaxDepth ( double val)
inline
Python
cv.rgbd.RgbdOdometry.setMaxDepth(val) ->

◆ setMaxDepthDiff()

void cv::rgbd::RgbdOdometry::setMaxDepthDiff ( double val)
inline
Python
cv.rgbd.RgbdOdometry.setMaxDepthDiff(val) ->

◆ setMaxPointsPart()

void cv::rgbd::RgbdOdometry::setMaxPointsPart ( double val)
inline
Python
cv.rgbd.RgbdOdometry.setMaxPointsPart(val) ->

◆ setMaxRotation()

void cv::rgbd::RgbdOdometry::setMaxRotation ( double val)
inline
Python
cv.rgbd.RgbdOdometry.setMaxRotation(val) ->

◆ setMaxTranslation()

void cv::rgbd::RgbdOdometry::setMaxTranslation ( double val)
inline
Python
cv.rgbd.RgbdOdometry.setMaxTranslation(val) ->

◆ setMinDepth()

void cv::rgbd::RgbdOdometry::setMinDepth ( double val)
inline
Python
cv.rgbd.RgbdOdometry.setMinDepth(val) ->

◆ setMinGradientMagnitudes()

void cv::rgbd::RgbdOdometry::setMinGradientMagnitudes ( const cv::Mat & val)
inline
Python
cv.rgbd.RgbdOdometry.setMinGradientMagnitudes(val) ->

◆ setTransformType()

void cv::rgbd::RgbdOdometry::setTransformType ( int val)
inlinevirtual
Python
cv.rgbd.RgbdOdometry.setTransformType(val) ->

另请参见
getTransformType

实现自 cv::rgbd::Odometry

成员数据文档

◆ cameraMatrix

Mat cv::rgbd::RgbdOdometry::cameraMatrix
保护

◆ iterCounts

Mat cv::rgbd::RgbdOdometry::iterCounts
保护

◆ maxDepth

double cv::rgbd::RgbdOdometry::maxDepth
保护

◆ maxDepthDiff

double cv::rgbd::RgbdOdometry::maxDepthDiff
保护

◆ maxPointsPart

double cv::rgbd::RgbdOdometry::maxPointsPart
保护

◆ maxRotation

double cv::rgbd::RgbdOdometry::maxRotation
保护

◆ maxTranslation

double cv::rgbd::RgbdOdometry::maxTranslation
保护

◆ minDepth

double cv::rgbd::RgbdOdometry::minDepth
保护

◆ minGradientMagnitudes

Mat cv::rgbd::RgbdOdometry::minGradientMagnitudes
保护

◆ transformType

int cv::rgbd::RgbdOdometry::transformType
保护

此类的文档由以下文件生成