![]() |
OpenCV 4.12.0
開源計算機視覺
|
卷積(或互相關)運算子的基類。: 更多...
#include <opencv2/cudaarithm.hpp>
公共成員函式 | |
| virtual void | convolve (InputArray image, InputArray templ, OutputArray result, bool ccorr=false, Stream &stream=Stream::Null())=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< _Tp > | load (const String &filename, const String &objname=String()) |
| 從檔案中載入演算法。 | |
| template<typename _Tp > | |
| static Ptr< _Tp > | loadFromString (const String &strModel, const String &objname=String()) |
| 從字串載入演算法。 | |
| template<typename _Tp > | |
| static Ptr< _Tp > | read (const FileNode &fn) |
| 從檔案節點讀取演算法。 | |
繼承自 cv::Algorithm 的保護成員函式 | |
| void | writeFormat (FileStorage &fs) const |
卷積(或互相關)運算子的基類。
|
純虛擬函式 |
計算兩個影像的卷積(或互相關)。
| image | 源影像。目前僅支援 CV_32FC1 影像。 |
| templ | 模板影像。大小不大於影像大小。型別與影像相同。 |
| result | 結果影像。如果影像為 W x H,模板為 w x h,則結果必須為 W-w+1 x H-h+1。 |
| ccorr | 指示評估互相關而非卷積的標誌。 |
| 流 | 用於非同步版本的 Stream。 |