Package org.opencv.saliency
Class ObjectnessBING
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.saliency.Saliency
-
- org.opencv.saliency.Objectness
-
- org.opencv.saliency.ObjectnessBING
-
public class ObjectnessBING extends Objectness
the Binarized normed gradients algorithm from CITE: BING
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedObjectnessBING(long addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ObjectnessBING__fromPtr__(long addr)booleancomputeSaliency(Mat image, Mat saliencyMap)Compute the saliency \param image The image.static ObjectnessBINGcreate()protected voidfinalize()doublegetBase()intgetNSS()MatOfFloatgetobjectnessValues()Return the list of the rectangles' objectness value, in the same order as the *vector<Vec4i> objectnessBoundingBox* returned by the algorithm (in computeSaliencyImpl function).intgetW()voidsetBase(double val)voidsetBBResDir(java.lang.String resultsDir)This is a utility function that allows to set an arbitrary path in which the algorithm will save the optional results (ie writing on file the total number and the list of rectangles returned by objectess, one for each row).voidsetNSS(int val)voidsetTrainingPath(java.lang.String trainingPath)This is a utility function that allows to set the correct path from which the algorithm will load the trained model.voidsetW(int val)-
Methods inherited from class org.opencv.core.Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
-
-
-
Method Detail
-
__fromPtr__
public static ObjectnessBING __fromPtr__(long addr)
-
create
public static ObjectnessBING 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
-
getobjectnessValues
public MatOfFloat getobjectnessValues()
Return the list of the rectangles' objectness value, in the same order as the *vector<Vec4i> objectnessBoundingBox* returned by the algorithm (in computeSaliencyImpl function). The bigger value these scores are, it is more likely to be an object window.- Returns:
- automatically generated
-
setTrainingPath
public void setTrainingPath(java.lang.String trainingPath)
This is a utility function that allows to set the correct path from which the algorithm will load the trained model.- Parameters:
trainingPath- trained model path
-
setBBResDir
public void setBBResDir(java.lang.String resultsDir)
This is a utility function that allows to set an arbitrary path in which the algorithm will save the optional results (ie writing on file the total number and the list of rectangles returned by objectess, one for each row).- Parameters:
resultsDir- results' folder path
-
getBase
public double getBase()
-
setBase
public void setBase(double val)
-
getNSS
public int getNSS()
-
setNSS
public void setNSS(int val)
-
getW
public int getW()
-
setW
public void setW(int val)
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classObjectness- Throws:
java.lang.Throwable
-
-