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

所有濾波器的主要介面,這些濾波器將稀疏匹配作為輸入,並生成密集的逐畫素匹配(光流)作為輸出。 更多...

#include <opencv2/ximgproc/sparse_match_interpolator.hpp>

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
 

詳細描述

所有濾波器的主要介面,這些濾波器將稀疏匹配作為輸入,並生成密集的逐畫素匹配(光流)作為輸出。

成員函式文件

◆ interpolate()

virtual void cv::ximgproc::SparseMatchInterpolator::interpolate ( InputArray from_image,
InputArray from_points,
InputArray to_image,
InputArray to_points,
OutputArray dense_flow )
純虛擬函式
Python
cv.ximgproc.SparseMatchInterpolator.interpolate(from_image, from_points, to_image, to_points[, dense_flow]) -> dense_flow

插值輸入稀疏匹配。

引數
from_image兩個匹配影像中的第一個,8 位單通道或三通道。
from_pointsfrom_image 中的點,在 to_image 中有對應點(Point2f 向量或深度為 CV_32F 的 Mat
to_image兩個匹配影像中的第二個,8 位單通道或三通道。
to_pointsto_image 中與 from_points 對應的點(Point2f 向量或深度為 CV_32F 的 Mat
dense_flow輸出密集匹配(雙通道 CV_32F 影像)

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