Class ObjectnessBING


  • public class ObjectnessBING
    extends Objectness
    the Binarized normed gradients algorithm from CITE: BING
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ObjectnessBING​(long addr)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ObjectnessBING __fromPtr__​(long addr)  
      boolean computeSaliency​(Mat image, Mat saliencyMap)
      Compute the saliency \param image The image.
      static ObjectnessBING create()  
      protected void finalize()  
      double getBase()  
      int getNSS()  
      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).
      int getW()  
      void setBase​(double val)  
      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).
      void setNSS​(int val)  
      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.
      void setW​(int val)  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectnessBING

        protected ObjectnessBING​(long addr)
    • Method Detail

      • __fromPtr__

        public static ObjectnessBING __fromPtr__​(long addr)
      • computeSaliency

        public boolean computeSaliency​(Mat image,
                                       Mat saliencyMap)
        Description copied from class: Saliency
        Compute the saliency \param image The image. \param saliencyMap The computed saliency map. \return true if the saliency map is computed, false otherwise
        Overrides:
        computeSaliency in class Saliency
        Parameters:
        image - automatically generated
        saliencyMap - 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:
        finalize in class Objectness
        Throws:
        java.lang.Throwable