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左右,具体取决于点定位的精度、图像分辨率和图像噪声。)
纯虚函数

此类的文档是从以下文件生成的