Table of Contents

Class CudaHoughLinesDetector

Namespace
Emgu.CV.Cuda
Assembly
Emgu.CV.dll

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 float

Distance resolution of the accumulator in pixels.

theta float

Angle resolution of the accumulator in radians.

threshold int

Accumulator threshold parameter. Only those lines are returned that get enough votes (> threshold).

doSort bool

Performs lines sort by votes.

maxLines int

Maximum number of output lines.

Properties

DoSort

Performs lines sort by votes

public bool DoSort { get; set; }

Property Value

bool

MaxLines

Maximum number of output lines

public int MaxLines { get; set; }

Property Value

int

Rho

Distance resolution of the accumulator in pixels

public float Rho { get; set; }

Property Value

float

Theta

Angle resolution of the accumulator in radians

public float Theta { get; set; }

Property Value

float

Threshold

Accumulator threshold parameter. Only those lines are returned that get enough

public int Threshold { get; set; }

Property Value

int

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 IInputArray

8-bit, single-channel binary source image

lines IOutputArray

Output 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 Stream

Use 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()