Package org.opencv.saliency
Class MotionSaliencyBinWangApr2014
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.saliency.Saliency
-
- org.opencv.saliency.MotionSaliency
-
- org.opencv.saliency.MotionSaliencyBinWangApr2014
-
public class MotionSaliencyBinWangApr2014 extends MotionSaliency
the Fast Self-tuning Background Subtraction Algorithm from CITE: BinWangApr2014
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMotionSaliencyBinWangApr2014(long addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MotionSaliencyBinWangApr2014__fromPtr__(long addr)booleancomputeSaliency(Mat image, Mat saliencyMap)Compute the saliency \param image The image.static MotionSaliencyBinWangApr2014create()protected voidfinalize()intgetImageHeight()intgetImageWidth()booleaninit()This function allows the correct initialization of all data structures that will be used by the algorithm.voidsetImageHeight(int val)voidsetImagesize(int W, int H)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.voidsetImageWidth(int val)-
Methods inherited from class org.opencv.core.Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
-
-
-
Method Detail
-
__fromPtr__
public static MotionSaliencyBinWangApr2014 __fromPtr__(long addr)
-
create
public static MotionSaliencyBinWangApr2014 create()
-
computeSaliency
public boolean computeSaliency(Mat image, Mat saliencyMap)
Description copied from class:SaliencyCompute the saliency \param image The image. \param saliencyMap The computed saliency map. \return true if the saliency map is computed, false otherwise- Overrides:
computeSaliencyin classSaliency- Parameters:
image- automatically generatedsaliencyMap- automatically generated- Returns:
- automatically generated
-
setImagesize
public void setImagesize(int W, int H)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.- Parameters:
W- width of input imageH- height of input image
-
init
public boolean init()
This function allows the correct initialization of all data structures that will be used by the algorithm.- Returns:
- automatically generated
-
getImageWidth
public int getImageWidth()
-
setImageWidth
public void setImageWidth(int val)
-
getImageHeight
public int getImageHeight()
-
setImageHeight
public void setImageHeight(int val)
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classMotionSaliency- Throws:
java.lang.Throwable
-
-