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

線段檢測器演算法的基類。: 更多...

#include <opencv2/cudaimgproc.hpp>

cv::cuda::HoughSegmentDetector 的協作圖

公共成員函式

virtual void detect (InputArray src, OutputArray lines, Stream &stream=Stream::Null())=0
 使用機率霍夫變換在二值影像中查詢線段。
 
virtual int getMaxLineGap () const =0
 
virtual int getMaxLines () const =0
 
virtual int getMinLineLength () const =0
 
virtual float getRho () const =0
 
virtual float getTheta () const =0
 
virtual int getThreshold () const =0
 
virtual void setMaxLineGap (int maxLineGap)=0
 
virtual void setMaxLines (int maxLines)=0
 
virtual void setMinLineLength (int minLineLength)=0
 
virtual void setRho (float rho)=0
 
virtual void setTheta (float theta)=0
 
virtual void setThreshold (int threshold)=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
 

詳細描述

線段檢測器演算法的基類。

成員函式文件

◆ detect()

virtual void cv::cuda::HoughSegmentDetector::detect ( InputArray src,
OutputArray 輸出向量,包含與另一影像中點對應的對極線。每條線\(ax + by + c=0\)由3個數字\((a, b, c)\)編碼。,
Stream & stream = Stream::Null() )
純虛擬函式

使用機率霍夫變換在二值影像中查詢線段。

引數
src8位、單通道二值源影像。
輸出向量,包含與另一影像中點對應的對極線。每條線\(ax + by + c=0\)由3個數字\((a, b, c)\)編碼。線的輸出向量。每條線由一個4元素向量 \((x_1, y_1, x_2, y_2)\) 表示,其中 \((x_1,y_1)\) 和 \((x_2, y_2)\) 是每個檢測到的線段的終點。
用於非同步版本的 Stream
另請參見
HoughLinesP

◆ getMaxLineGap()

virtual int cv::cuda::HoughSegmentDetector::getMaxLineGap ( ) const
純虛擬函式

◆ getMaxLines()

virtual int cv::cuda::HoughSegmentDetector::getMaxLines ( ) const
純虛擬函式

◆ getMinLineLength()

virtual int cv::cuda::HoughSegmentDetector::getMinLineLength ( ) const
純虛擬函式

◆ getRho()

virtual float cv::cuda::HoughSegmentDetector::getRho ( ) const
純虛擬函式

◆ getTheta()

virtual float cv::cuda::HoughSegmentDetector::getTheta ( ) const
純虛擬函式

◆ getThreshold()

virtual int cv::cuda::HoughSegmentDetector::getThreshold ( ) const
純虛擬函式

◆ setMaxLineGap()

virtual void cv::cuda::HoughSegmentDetector::setMaxLineGap ( int maxLineGap)
純虛擬函式

◆ setMaxLines()

virtual void cv::cuda::HoughSegmentDetector::setMaxLines ( int maxLines)
純虛擬函式

◆ setMinLineLength()

virtual void cv::cuda::HoughSegmentDetector::setMinLineLength ( int minLineLength)
純虛擬函式

◆ setRho()

virtual void cv::cuda::HoughSegmentDetector::setRho ( float rho)
純虛擬函式

◆ setTheta()

virtual void cv::cuda::HoughSegmentDetector::setTheta ( float theta)
純虛擬函式

◆ setThreshold()

virtual void cv::cuda::HoughSegmentDetector::setThreshold ( int RANSAC引數。它是點到畫素中對極線的最大距離,超過此距離的點將被視為異常值,不用於計算最終的基本矩陣。它可以設定為1-3左右,具體取決於點定位的精度、影像解析度和影像噪聲。)
純虛擬函式

此類的文件是從以下檔案生成的