Skip to content

GeneralizedHough

Image processingclassOpenCV 5.0.0
import { GeneralizedHough } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSGeneralizedHough
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits Algorithm.

finds arbitrary template in the grayscale image using Generalized Hough Transform

Constructors and members

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

setTemplate

set template to search

setTemplate(templ: Mat, templCenter: Point): void;
2 available overloads
setTemplate(templ: Mat): void;
setTemplate(templ: Mat, templCenter: Point): void;
templ

templ argument (Mat).

templCenter

templ center argument (Point).

setTemplate1

set template to search

setTemplate1(edges: Mat, dx: Mat, dy: Mat, templCenter: Point): void;
2 available overloads
setTemplate1(edges: Mat, dx: Mat, dy: Mat): void;
setTemplate1(edges: Mat, dx: Mat, dy: Mat, templCenter: Point): void;
edges

edges argument (Mat).

dx

dx argument (Mat).

dy

dy argument (Mat).

templCenter

templ center argument (Point).

detect

find template on image

detect(image: Mat, positions: Mat, votes: Mat): void;
2 available overloads
detect(image: Mat, positions: Mat): void;
detect(image: Mat, positions: Mat, votes: Mat): void;
image

image argument (Mat).

positions

Output destination, filled by the native operation. positions argument (Mat).

votes

Output destination, filled by the native operation. votes argument (Mat).

detect1

find template on image

detect1(edges: Mat, dx: Mat, dy: Mat, positions: Mat, votes: Mat): void;
2 available overloads
detect1(edges: Mat, dx: Mat, dy: Mat, positions: Mat): void;
detect1(edges: Mat, dx: Mat, dy: Mat, positions: Mat, votes: Mat): void;
edges

edges argument (Mat).

dx

dx argument (Mat).

dy

dy argument (Mat).

positions

Output destination, filled by the native operation. positions argument (Mat).

votes

Output destination, filled by the native operation. votes argument (Mat).

setCannyLowThresh

Canny low threshold.

setCannyLowThresh(cannyLowThresh: number): void;
cannyLowThresh

canny low thresh argument (number).

getCannyLowThresh

Read the canny low thresh.

Canny low threshold.

getCannyLowThresh(): number;
Returns

The number result.

setCannyHighThresh

Canny high threshold.

setCannyHighThresh(cannyHighThresh: number): void;
cannyHighThresh

canny high thresh argument (number).

getCannyHighThresh

Read the canny high thresh.

Canny high threshold.

getCannyHighThresh(): number;
Returns

The number result.

setMinDist

Minimum distance between the centers of the detected objects.

setMinDist(minDist: number): void;
minDist

min dist argument (number).

getMinDist

Read the min dist.

Minimum distance between the centers of the detected objects.

getMinDist(): number;
Returns

The number result.

setDp

Inverse ratio of the accumulator resolution to the image resolution.

setDp(dp: number): void;
dp

dp argument (number).

getDp

Read the dp.

Inverse ratio of the accumulator resolution to the image resolution.

getDp(): number;
Returns

The number result.

setMaxBufferSize

Maximal size of inner buffers.

setMaxBufferSize(maxBufferSize: number): void;
maxBufferSize

max buffer size argument (number).

getMaxBufferSize

Read the max buffer size.

Maximal size of inner buffers.

getMaxBufferSize(): number;
Returns

The number result.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.