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
ImageWidth
Gets or sets the image width.
public int ImageWidth { get; set; }
Property Value
Methods
ComputeSaliency(InputArray, OutputArray)
Computes the motion saliency map for the given frame.
public virtual bool ComputeSaliency(InputArray image, OutputArray saliencyMap)
Parameters
imageInputArrayInput image frame (grayscale, CV_8UC1).
saliencyMapOutputArrayThe computed binary saliency map.
Returns
- bool
true if the saliency map was computed successfully.
Create()
Creates a MotionSaliencyBinWangApr2014 instance.
public static MotionSaliencyBinWangApr2014 Create()
Returns
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)