OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
cv::ximgproc::EdgeAwareInterpolator 類參考抽象類

基於修改的區域性加權仿射估計器的稀疏匹配插值演算法,出自 [228],並使用快速全域性平滑器作為後處理濾波器。 更多...

#include <opencv2/ximgproc/sparse_match_interpolator.hpp>

cv::ximgproc::EdgeAwareInterpolator 的協作圖

公共成員函式

virtual float getFGSLambda ()=0
 
virtual float getFGSSigma ()=0
 
virtual int getK ()=0
 
virtual float getLambda ()=0
 
virtual float getSigma ()=0
 
virtual bool getUsePostProcessing ()=0
 
virtual void setCostMap (const Mat &_costMap)=0
 提供更詳細的代價圖(即邊緣圖)的介面,用於邊緣感知項。 此實現基於相當簡單的基於梯度的邊緣圖估計。 為了使用更復雜的邊緣圖估計器(例如,StructuredEdgeDetection,它已在原始出版物中使用),這可能會提高準確性,可以繞過內部邊緣圖估計。
 
virtual void setFGSLambda (float _lambda)=0
 設定相應的 fastGlobalSmootherFilter() 引數。
 
virtual void setFGSSigma (float _sigma)=0
 
virtual void setK (int _k)=0
 用於調整用於超畫素分割的超畫素近似大小的引數。
 
virtual void setLambda (float _lambda)=0
 Lambda 是一個引數,用於定義大地距離中邊緣感知項的權重,應在 0 到 1000 的範圍內。
 
virtual void setSigma (float _sigma)=0
 Sigma 是一個引數,用於定義區域性加權仿射擬閤中權重下降的速度。 較高的值有助於保留精細的細節,較低的值有助於消除輸出流中的噪聲。
 
virtual void setUsePostProcessing (bool _use_post_proc)=0
 設定是否使用 fastGlobalSmootherFilter() 後處理。 預設情況下已啟用。
 
- 從 cv::ximgproc::SparseMatchInterpolator 繼承的公共成員函式
virtual void interpolate (InputArray from_image, InputArray from_points, InputArray to_image, InputArray to_points, OutputArray dense_flow)=0
 插值輸入稀疏匹配。
 
- 從 cv::Algorithm 繼承的公共成員函式
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 清除演算法狀態。
 
virtual bool empty () const
 如果 Algorithm 為空(例如,在剛開始或不成功的讀取之後),則返回 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
 

其他繼承成員

- 從 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)
 從檔案節點讀取演算法。
 
- 從 cv::Algorithm 繼承的保護成員函式
void writeFormat (FileStorage &fs) const
 

詳細描述

基於修改的區域性加權仿射估計器的稀疏匹配插值演算法,出自 [228],並使用快速全域性平滑器作為後處理濾波器。

成員函式文件

◆ getFGSLambda()

virtual float cv::ximgproc::EdgeAwareInterpolator::getFGSLambda ( )
純虛擬函式
Python
cv.ximgproc.EdgeAwareInterpolator.getFGSLambda() -> retval
另請參見
setFGSLambda

◆ getFGSSigma()

virtual float cv::ximgproc::EdgeAwareInterpolator::getFGSSigma ( )
純虛擬函式
Python
cv.ximgproc.EdgeAwareInterpolator.getFGSSigma() -> retval
另請參見
setFGSLambda

◆ getK()

virtual int cv::ximgproc::EdgeAwareInterpolator::getK ( )
純虛擬函式
Python
cv.ximgproc.EdgeAwareInterpolator.getK() -> retval
另請參見
setK

◆ getLambda()

virtual float cv::ximgproc::EdgeAwareInterpolator::getLambda ( )
純虛擬函式
Python
cv.ximgproc.EdgeAwareInterpolator.getLambda() -> retval
另請參見
setLambda

◆ getSigma()

virtual float cv::ximgproc::EdgeAwareInterpolator::getSigma ( )
純虛擬函式
Python
cv.ximgproc.EdgeAwareInterpolator.getSigma() -> retval
另請參見
setSigma

◆ getUsePostProcessing()

virtual bool cv::ximgproc::EdgeAwareInterpolator::getUsePostProcessing ( )
純虛擬函式
Python
cv.ximgproc.EdgeAwareInterpolator.getUsePostProcessing() -> retval
另請參見
setUsePostProcessing

◆ setCostMap()

virtual void cv::ximgproc::EdgeAwareInterpolator::setCostMap ( const Mat & _costMap)
純虛擬函式
Python
cv.ximgproc.EdgeAwareInterpolator.setCostMap(_costMap) ->

提供更詳細的代價圖(即邊緣圖)的介面,用於邊緣感知項。 此實現基於相當簡單的基於梯度的邊緣圖估計。 為了使用更復雜的邊緣圖估計器(例如,StructuredEdgeDetection,它已在原始出版物中使用),這可能會提高準確性,可以繞過內部邊緣圖估計。

引數
_costMap需要型別為 CV_32FC1 的 Mat
另請參見
cv::ximgproc::createSuperpixelSLIC

◆ setFGSLambda()

virtual void cv::ximgproc::EdgeAwareInterpolator::setFGSLambda ( float _lambda)
純虛擬函式
Python
cv.ximgproc.EdgeAwareInterpolator.setFGSLambda(_lambda) ->

設定相應的 fastGlobalSmootherFilter() 引數。

◆ setFGSSigma()

virtual void cv::ximgproc::EdgeAwareInterpolator::setFGSSigma ( float _sigma)
純虛擬函式
Python
cv.ximgproc.EdgeAwareInterpolator.setFGSSigma(_sigma) ->
另請參見
setFGSLambda

◆ setK()

virtual void cv::ximgproc::EdgeAwareInterpolator::setK ( int _k)
純虛擬函式
Python
cv.ximgproc.EdgeAwareInterpolator.setK(_k) ->

用於調整用於超畫素分割的超畫素近似大小的引數。

另請參見
cv::ximgproc::createSuperpixelSLIC

K 是擬合局部仿射模型時考慮的最近鄰匹配數。 通常它應該在 128 左右。 但是,較低的值會使插值明顯更快。

◆ setLambda()

virtual void cv::ximgproc::EdgeAwareInterpolator::setLambda ( float _lambda)
純虛擬函式
Python
cv.ximgproc.EdgeAwareInterpolator.setLambda(_lambda) ->

Lambda 是一個引數,用於定義大地距離中邊緣感知項的權重,應在 0 到 1000 的範圍內。

◆ setSigma()

virtual void cv::ximgproc::EdgeAwareInterpolator::setSigma ( float _sigma)
純虛擬函式
Python
cv.ximgproc.EdgeAwareInterpolator.setSigma(_sigma) ->

Sigma 是一個引數,用於定義區域性加權仿射擬閤中權重下降的速度。 較高的值有助於保留精細的細節,較低的值有助於消除輸出流中的噪聲。

◆ setUsePostProcessing()

virtual void cv::ximgproc::EdgeAwareInterpolator::setUsePostProcessing ( bool _use_post_proc)
純虛擬函式
Python
cv.ximgproc.EdgeAwareInterpolator.setUsePostProcessing(_use_post_proc) ->

設定是否使用 fastGlobalSmootherFilter() 後處理。 預設情況下已啟用。


此類文件由以下檔案生成