Table of Contents

Class MotionSaliencyBinWangApr2014

Namespace
OpenCvSharp.Saliency
Assembly
OpenCvSharp.dll

A Fast Self-tuning Background Subtraction Algorithm for motion saliency detection.

public class MotionSaliencyBinWangApr2014 : Algorithm, IDisposable
Inheritance
MotionSaliencyBinWangApr2014
Implements
Inherited Members

Properties

ImageHeight

Gets or sets the image height.

public int ImageHeight { get; set; }

Property Value

int

ImageWidth

Gets or sets the image width.

public int ImageWidth { get; set; }

Property Value

int

Methods

ComputeSaliency(InputArray, OutputArray)

Computes the motion saliency map for the given frame.

public virtual bool ComputeSaliency(InputArray image, OutputArray saliencyMap)

Parameters

image InputArray

Input image frame (grayscale, CV_8UC1).

saliencyMap OutputArray

The computed binary saliency map.

Returns

bool

true if the saliency map was computed successfully.

Create()

Creates a MotionSaliencyBinWangApr2014 instance.

public static MotionSaliencyBinWangApr2014 Create()

Returns

MotionSaliencyBinWangApr2014

Init()

Initializes all data structures for the algorithm. Call after SetImagesize(int, int).

public bool Init()

Returns

bool

true if initialization succeeded.

SetImagesize(int, int)

Sets the image dimensions to prepare the algorithm's data structures. Must be called before Init().

public void SetImagesize(int width, int height)

Parameters

width int

Width of the input images.

height int

Height of the input images.