Skip to content

saliency_MotionSaliencyBinWangApr2014

saliencyclassOpenCV 5.0.0
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;
Returns

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;
Returns

The this result.

computeSaliency

Compute the saliency

computeSaliency(image: Mat, saliencyMap: Mat): boolean;
image

The image.

saliencyMap

Output destination, filled by the native operation. The computed saliency map.

Returns

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;
W

width of input image

H

height of input image

init

This function allows the correct initialization of all data structures that will be used by the algorithm.

init(): boolean;
Returns

The boolean result.

getImageWidth

Return the image width configured on this saliency_MotionSaliencyBinWangApr2014 object.

getImageWidth(): number;
Returns

The number result.

setImageWidth

Set the image width used by this saliency_MotionSaliencyBinWangApr2014 object.

setImageWidth(val: number): void;
val

val argument (number).

getImageHeight

Return the image height configured on this saliency_MotionSaliencyBinWangApr2014 object.

getImageHeight(): number;
Returns

The number result.

setImageHeight

Set the image height used by this saliency_MotionSaliencyBinWangApr2014 object.

setImageHeight(val: number): void;
val

val 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.