Class CudaHoughLinesDetector
Base class for lines detector algorithm.
public class CudaHoughLinesDetector : SharedPtrObject, IDisposable
- Inheritance
-
CudaHoughLinesDetector
- Implements
- Inherited Members
Constructors
CudaHoughLinesDetector(float, float, int, bool, int)
Create a hough lines detector
public CudaHoughLinesDetector(float rho, float theta, int threshold, bool doSort = false, int maxLines = 4096)
Parameters
rho
floatDistance resolution of the accumulator in pixels.
theta
floatAngle resolution of the accumulator in radians.
threshold
intAccumulator threshold parameter. Only those lines are returned that get enough votes (> threshold).
doSort
boolPerforms lines sort by votes.
maxLines
intMaximum number of output lines.
Properties
DoSort
Performs lines sort by votes
public bool DoSort { get; set; }
Property Value
MaxLines
Maximum number of output lines
public int MaxLines { get; set; }
Property Value
Rho
Distance resolution of the accumulator in pixels
public float Rho { get; set; }
Property Value
Theta
Angle resolution of the accumulator in radians
public float Theta { get; set; }
Property Value
Threshold
Accumulator threshold parameter. Only those lines are returned that get enough
public int Threshold { get; set; }
Property Value
Methods
Detect(IInputArray, IOutputArray, Stream)
Finds line segments in a binary image using the probabilistic Hough transform.
public void Detect(IInputArray image, IOutputArray lines, Stream stream = null)
Parameters
image
IInputArray8-bit, single-channel binary source image
lines
IOutputArrayOutput vector of lines. Each line is represented by a two-element vector. The first element is the distance from the coordinate origin (top-left corner of the image). The second element is the line rotation angle in radians.
stream
StreamUse a Stream to call the function asynchronously (non-blocking) or null to call the function synchronously (blocking).
DisposeObject()
Release the unmanaged memory associated to this line detector.
protected override void DisposeObject()