ximgproc_StructuredEdgeDetection
import { ximgproc_StructuredEdgeDetection } 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.
Class implementing edge detection algorithm from [Dollar2013] :
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.
detectEdges
The function detects edges in src and draw them to dst.
The algorithm underlies this function is much more robust to texture presence, than common
approaches, e.g. Sobel
See: Sobel, Canny
detectEdges(src: Mat, dst: Mat): void;srcsource image (RGB, float, in [0;1]) to detect edges
dstOutput destination, filled by the native operation. destination image (grayscale, float, in [0;1]) where edges are drawn
computeOrientation
The function computes orientation from edge image.
computeOrientation(src: Mat, dst: Mat): void;srcedge image.
dstOutput destination, filled by the native operation. orientation image.
edgesNms
The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.
edgesNms(edge_image: Mat, orientation_image: Mat, dst: Mat, r: number, s: number, m: number, isParallel: boolean): void;5 available overloads
edgesNms(edge_image: Mat, orientation_image: Mat, dst: Mat): void;edgesNms(edge_image: Mat, orientation_image: Mat, dst: Mat, r: number): void;edgesNms(edge_image: Mat, orientation_image: Mat, dst: Mat, r: number, s: number): void;edgesNms(edge_image: Mat, orientation_image: Mat, dst: Mat, r: number, s: number, m: number): void;edgesNms(edge_image: Mat, orientation_image: Mat, dst: Mat, r: number, s: number, m: number, isParallel: boolean): void;edge_imageedge image from detectEdges function.
orientation_imageorientation image from computeOrientation function.
dstOutput destination, filled by the native operation. suppressed image (grayscale, float, in [0;1])
rradius for NMS suppression.
sradius for boundary suppression.
mmultiplier for conservative suppression.
isParallelenables/disables parallel computing.
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.