ximgproc_RFFeatureGetter
import { ximgproc_RFFeatureGetter } 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.
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;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.