saliency_MotionSaliencyBinWangApr2014
import { saliency_MotionSaliencyBinWangApr2014 } 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 saliency_MotionSaliency.
Specific Motion Saliency Specialized Classes *********************************** A Fast Self-tuning Background Subtraction Algorithm.
This background subtraction algorithm is inspired to the work of B. Wang and P. Dudek [2] [2] B. Wang and P. Dudek "A Fast Self-tuning Background Subtraction Algorithm", in proc of IEEE Workshop on Change Detection, 2014
the Fast Self-tuning Background Subtraction Algorithm from [BinWangApr2014]
Constructors and members
static create
Create an owned saliency_MotionSaliencyBinWangApr2014 instance with the supplied configuration.
Specific Motion Saliency Specialized Classes *********************************** A Fast Self-tuning Background Subtraction Algorithm.
create(): saliency_MotionSaliencyBinWangApr2014 | null;The saliency_MotionSaliencyBinWangApr2014 | null 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.
computeSaliency
Compute the saliency
computeSaliency(image: Mat, saliencyMap: Mat): boolean;imageThe image.
saliencyMapOutput destination, filled by the native operation. The computed saliency map.
true if the saliency map is computed, false otherwise
setImagesize
This is a utility function that allows to set the correct size (taken from the input image) in the corresponding variables that will be used to size the data structures of the algorithm.
setImagesize(W: number, H: number): void;Wwidth of input image
Hheight of input image
init
This function allows the correct initialization of all data structures that will be used by the algorithm.
init(): boolean;The boolean result.
getImageWidth
Return the image width configured on this saliency_MotionSaliencyBinWangApr2014 object.
getImageWidth(): number;The number result.
setImageWidth
Set the image width used by this saliency_MotionSaliencyBinWangApr2014 object.
setImageWidth(val: number): void;valval argument (number).
getImageHeight
Return the image height configured on this saliency_MotionSaliencyBinWangApr2014 object.
getImageHeight(): number;The number result.
setImageHeight
Set the image height used by this saliency_MotionSaliencyBinWangApr2014 object.
setImageHeight(val: number): void;valval argument (number).
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.