OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项

详细描述

类  cv::cuda::HoughCirclesDetector
 圆形检测器算法的基类。 : 更多...
 
类  cv::cuda::HoughLinesDetector
 直线检测器算法的基类。 : 更多...
 
类  cv::cuda::HoughSegmentDetector
 线段检测器算法的基类。 : 更多...
 

函数

Ptr< GeneralizedHoughBallardcv::cuda::createGeneralizedHoughBallard ()
 创建广义霍夫变换的实现,来自 [16]
 
Ptr< GeneralizedHoughGuilcv::cuda::createGeneralizedHoughGuil ()
 创建广义霍夫变换的实现,来自 [116]
 
Ptr< HoughCirclesDetectorcv::cuda::createHoughCirclesDetector (float dp, float minDist, int cannyThreshold, int votesThreshold, int minRadius, int maxRadius, int maxCircles=4096)
 创建 cuda::HoughCirclesDetector 的实现。
 
Ptr< HoughLinesDetectorcv::cuda::createHoughLinesDetector (float rho, float theta, int threshold, bool doSort=false, int maxLines=4096)
 创建 cuda::HoughLinesDetector 的实现。
 
Ptr< HoughSegmentDetectorcv::cuda::createHoughSegmentDetector (float rho, float theta, int minLineLength, int maxLineGap, int maxLines=4096, int threshold=-1)
 创建 cuda::HoughSegmentDetector 的实现。
 

函数文档

◆ createGeneralizedHoughBallard()

Ptr< GeneralizedHoughBallard > cv::cuda::createGeneralizedHoughBallard ( )

#include <opencv2/cudaimgproc.hpp>

创建广义霍夫变换的实现,来自 [16]

◆ createGeneralizedHoughGuil()

Ptr< GeneralizedHoughGuil > cv::cuda::createGeneralizedHoughGuil ( )

#include <opencv2/cudaimgproc.hpp>

创建广义霍夫变换的实现,来自 [116]

◆ createHoughCirclesDetector()

Ptr< HoughCirclesDetector > cv::cuda::createHoughCirclesDetector ( float dp,
float minDist,
int cannyThreshold,
int votesThreshold,
int minRadius,
int maxRadius,
int maxCircles = 4096 )

#include <opencv2/cudaimgproc.hpp>

创建 cuda::HoughCirclesDetector 的实现。

参数
dp累加器分辨率与图像分辨率的反比。例如,如果 dp=1 ,则累加器的分辨率与输入图像相同。如果 dp=2 ,则累加器的宽度和高度只有一半。
minDist检测到的圆的中心之间的最小距离。如果参数太小,除了一个真圆之外,可能会错误地检测到多个相邻圆。如果太大,可能会错过一些圆。
cannyThreshold传递给 Canny 边缘检测器的两个阈值中的较高阈值(较低的阈值是其两倍小)。
votesThreshold检测阶段圆心的累加器阈值。它越小,可能检测到的错误圆圈就越多。
minRadius最小圆半径。
maxRadius最大圆半径。
maxCircles最大输出圆数。

◆ createHoughLinesDetector()

Ptr< HoughLinesDetector > cv::cuda::createHoughLinesDetector ( float rho,
float theta,
int RANSAC参数。它是点到像素中对极线的最大距离,超过此距离的点将被视为异常值,不用于计算最终的基本矩阵。它可以设置为1-3左右,具体取决于点定位的精度、图像分辨率和图像噪声。,
bool doSort = false,
int maxLines = 4096 )

#include <opencv2/cudaimgproc.hpp>

创建 cuda::HoughLinesDetector 的实现。

参数
rho累加器的距离分辨率(以像素为单位)。
theta累加器的角度分辨率(以弧度为单位)。
RANSAC参数。它是点到像素中对极线的最大距离,超过此距离的点将被视为异常值,不用于计算最终的基本矩阵。它可以设置为1-3左右,具体取决于点定位的精度、图像分辨率和图像噪声。Accumulator 阈值参数。仅返回获得足够票数的线( \(>\texttt{threshold}\) )。
doSort按票数对直线进行排序。
maxLines最大输出线数。

◆ createHoughSegmentDetector()

Ptr< HoughSegmentDetector > cv::cuda::createHoughSegmentDetector ( float rho,
float theta,
int minLineLength,
int maxLineGap,
int maxLines = 4096,
int threshold = -1 )

#include <opencv2/cudaimgproc.hpp>

创建 cuda::HoughSegmentDetector 的实现。

参数
rho累加器的距离分辨率(以像素为单位)。
theta累加器的角度分辨率(以弧度为单位)。
minLineLength最小线段长度。短于该长度的线段将被拒绝。
maxLineGap同一条线上点之间的最大允许间隙,用于连接它们。
maxLines最大输出线数。
RANSAC参数。它是点到像素中对极线的最大距离,超过此距离的点将被视为异常值,不用于计算最终的基本矩阵。它可以设置为1-3左右,具体取决于点定位的精度、图像分辨率和图像噪声。累加器阈值参数。仅返回获得足够票数的线( \(>\texttt{threshold}\) )。