bgsegm_SyntheticSequenceGenerator
import { bgsegm_SyntheticSequenceGenerator } 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.
Synthetic frame sequence generator for testing background subtraction algorithms.
It will generate the moving object on top of the background. It will apply some distortion to the background to make the test more complex.
Constructors and members
static new
Creates an instance of SyntheticSequenceGenerator.
new(background: Mat, _1: Mat, amplitude: number, wavelength: number, wavespeed: number, objspeed: number): bgsegm_SyntheticSequenceGenerator;backgroundBackground image for object.
_1Object image which will move slowly over the background.
amplitudeAmplitude of wave distortion applied to background.
wavelengthLength of waves in distortion applied to background.
wavespeedHow fast waves will move.
objspeedHow fast object will fly over background.
The bgsegm_SyntheticSequenceGenerator result.
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.
getNextFrame
Obtain the next frame in the sequence.
getNextFrame(frame: Mat, gtMask: Mat): void;frameOutput destination, filled by the native operation. Output frame.
gtMaskOutput destination, filled by the native operation. Output ground-truth (reference) segmentation mask object/background.
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.