Class ObjectnessBING
java.lang.Object
org.opencv.core.Algorithm
org.opencv.saliency.Saliency
org.opencv.saliency.Objectness
org.opencv.saliency.ObjectnessBING
the Binarized normed gradients algorithm from CITE: BING
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectnessBING__fromPtr__(long addr) booleancomputeSaliency(Mat image, Mat saliencyMap) Compute the saliency \param image The image.static ObjectnessBINGcreate()doublegetBase()intgetNSS()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(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(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 Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
Constructor Details
-
ObjectnessBING
protected ObjectnessBING(long addr)
-
-
Method Details
-
__fromPtr__
-
create
-
computeSaliency
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
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
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
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)
-