Skip to content

ximgproc_RFFeatureGetter

Extended image processingclassOpenCV 5.0.0
import { ximgproc_RFFeatureGetter } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSximgproc_RFFeatureGetter
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.

Helper class for training part of [P. Dollar and C. L. Zitnick. Structured Forests for Fast Edge Detection, 2013].

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.

getFeatures

This functions extracts feature channels from src. Than StructureEdgeDetection uses this feature space to detect edges.

getFeatures(src: Mat, features: Mat, gnrmRad: number, gsmthRad: number, shrink: number, outNum: number, gradNum: number): void;
src

: source image to extract features

features

: output n-channel floating point feature matrix.

gnrmRad

: __rf.options.gradientNormalizationRadius

gsmthRad

: __rf.options.gradientSmoothingRadius

shrink

: __rf.options.shrinkNumber

outNum

: __rf.options.numberOfOutputChannels

gradNum

: __rf.options.numberOfGradientOrientations

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.