GeneralizedHough
import { GeneralizedHough } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;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;templtempl argument (Mat).
templCentertempl 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;edgesedges argument (Mat).
dxdx argument (Mat).
dydy argument (Mat).
templCentertempl 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;imageimage argument (Mat).
positionsOutput destination, filled by the native operation. positions argument (Mat).
votesOutput 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;edgesedges argument (Mat).
dxdx argument (Mat).
dydy argument (Mat).
positionsOutput destination, filled by the native operation. positions argument (Mat).
votesOutput destination, filled by the native operation. votes argument (Mat).
setCannyLowThresh
Canny low threshold.
setCannyLowThresh(cannyLowThresh: number): void;cannyLowThreshcanny low thresh argument (number).
getCannyLowThresh
Read the canny low thresh.
Canny low threshold.
getCannyLowThresh(): number;The number result.
setCannyHighThresh
Canny high threshold.
setCannyHighThresh(cannyHighThresh: number): void;cannyHighThreshcanny high thresh argument (number).
getCannyHighThresh
Read the canny high thresh.
Canny high threshold.
getCannyHighThresh(): number;The number result.
setMinDist
Minimum distance between the centers of the detected objects.
setMinDist(minDist: number): void;minDistmin dist argument (number).
getMinDist
Read the min dist.
Minimum distance between the centers of the detected objects.
getMinDist(): number;The number result.
setDp
Inverse ratio of the accumulator resolution to the image resolution.
setDp(dp: number): void;dpdp argument (number).
getDp
Read the dp.
Inverse ratio of the accumulator resolution to the image resolution.
getDp(): number;The number result.
setMaxBufferSize
Maximal size of inner buffers.
setMaxBufferSize(maxBufferSize: number): void;maxBufferSizemax buffer size argument (number).
getMaxBufferSize
Read the max buffer size.
Maximal size of inner buffers.
getMaxBufferSize(): number;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.