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
保護

此類的文件由以下檔案生成