OpenCV  4.1.0
Open Source Computer Vision
Classes | Functions
Hough Transform

Classes

class  cv::cuda::HoughCirclesDetector
 Base class for circles detector algorithm. : More...
 
class  cv::cuda::HoughLinesDetector
 Base class for lines detector algorithm. : More...
 
class  cv::cuda::HoughSegmentDetector
 Base class for line segments detector algorithm. : More...
 

Functions

Ptr< GeneralizedHoughBallard > cv::cuda::createGeneralizedHoughBallard ()
 Creates implementation for generalized hough transform from.
 
Ptr< GeneralizedHoughGuil > cv::cuda::createGeneralizedHoughGuil ()
 Creates implementation for generalized hough transform from.
 
Ptr< HoughCirclesDetector > cv::cuda::createHoughCirclesDetector (float dp, float minDist, int cannyThreshold, int votesThreshold, int minRadius, int maxRadius, int maxCircles=4096)
 Creates implementation for cuda::HoughCirclesDetector .
 
Ptr< HoughLinesDetector > cv::cuda::createHoughLinesDetector (float rho, float theta, int threshold, bool doSort=false, int maxLines=4096)
 Creates implementation for cuda::HoughLinesDetector .
 
Ptr< HoughSegmentDetector > cv::cuda::createHoughSegmentDetector (float rho, float theta, int minLineLength, int maxLineGap, int maxLines=4096)
 Creates implementation for cuda::HoughSegmentDetector .
 

Detailed Description

Function Documentation

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

Creates implementation for generalized hough transform from.

Ballard1981 .

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

Creates implementation for generalized hough transform from.

Guil1999 .

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

Creates implementation for cuda::HoughCirclesDetector .

Parameters
dpInverse ratio of the accumulator resolution to the image resolution. For example, if dp=1 , the accumulator has the same resolution as the input image. If dp=2 , the accumulator has half as big width and height.
minDistMinimum distance between the centers of the detected circles. If the parameter is too small, multiple neighbor circles may be falsely detected in addition to a true one. If it is too large, some circles may be missed.
cannyThresholdThe higher threshold of the two passed to Canny edge detector (the lower one is twice smaller).
votesThresholdThe accumulator threshold for the circle centers at the detection stage. The smaller it is, the more false circles may be detected.
minRadiusMinimum circle radius.
maxRadiusMaximum circle radius.
maxCirclesMaximum number of output circles.
Ptr<HoughLinesDetector> cv::cuda::createHoughLinesDetector ( float  rho,
float  theta,
int  threshold,
bool  doSort = false,
int  maxLines = 4096 
)

Creates implementation for cuda::HoughLinesDetector .

Parameters
rhoDistance resolution of the accumulator in pixels.
thetaAngle resolution of the accumulator in radians.
thresholdAccumulator threshold parameter. Only those lines are returned that get enough votes ( \(>\texttt{threshold}\) ).
doSortPerforms lines sort by votes.
maxLinesMaximum number of output lines.
Ptr<HoughSegmentDetector> cv::cuda::createHoughSegmentDetector ( float  rho,
float  theta,
int  minLineLength,
int  maxLineGap,
int  maxLines = 4096 
)

Creates implementation for cuda::HoughSegmentDetector .

Parameters
rhoDistance resolution of the accumulator in pixels.
thetaAngle resolution of the accumulator in radians.
minLineLengthMinimum line length. Line segments shorter than that are rejected.
maxLineGapMaximum allowed gap between points on the same line to link them.
maxLinesMaximum number of output lines.