Table of Contents

Class GeneralizedHough

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

finds arbitrary template in the grayscale image using Generalized Hough Transform

public abstract class GeneralizedHough : Algorithm, IDisposable, ICvPtrHolder
Inheritance
GeneralizedHough
Implements
Derived
Inherited Members

Properties

CannyHighThresh

Canny high threshold.

public int CannyHighThresh { get; set; }

Property Value

int

CannyLowThresh

Canny low threshold.

public int CannyLowThresh { get; set; }

Property Value

int

Dp

Inverse ratio of the accumulator resolution to the image resolution.

public double Dp { get; set; }

Property Value

double

MaxBufferSize

Maximal size of inner buffers.

public int MaxBufferSize { get; set; }

Property Value

int

MinDist

Minimum distance between the centers of the detected objects.

public double MinDist { get; set; }

Property Value

double

Methods

Detect(InputArray, InputArray, InputArray, OutputArray, OutputArray?)

find template on image

public virtual void Detect(InputArray edges, InputArray dx, InputArray dy, OutputArray positions, OutputArray? votes = null)

Parameters

edges InputArray
dx InputArray
dy InputArray
positions OutputArray
votes OutputArray

Detect(InputArray, OutputArray, OutputArray?)

find template on image

public virtual void Detect(InputArray image, OutputArray positions, OutputArray? votes = null)

Parameters

image InputArray
positions OutputArray
votes OutputArray

SetTemplate(InputArray, InputArray, InputArray, Point?)

set template to search

public virtual void SetTemplate(InputArray edges, InputArray dx, InputArray dy, Point? templCenter = null)

Parameters

edges InputArray
dx InputArray
dy InputArray
templCenter Point?

SetTemplate(InputArray, Point?)

set template to search

public void SetTemplate(InputArray templ, Point? templCenter = null)

Parameters

templ InputArray
templCenter Point?