Class SelectiveSearchSegmentation


  • public class SelectiveSearchSegmentation
    extends Algorithm
    Selective search segmentation algorithm The class implements the algorithm described in CITE: uijlings2013selective.
    • Constructor Detail

      • SelectiveSearchSegmentation

        protected SelectiveSearchSegmentation​(long addr)
    • Method Detail

      • addGraphSegmentation

        public void addGraphSegmentation​(GraphSegmentation g)
        Add a new graph segmentation in the list of graph segementations to process.
        Parameters:
        g - The graph segmentation
      • addImage

        public void addImage​(Mat img)
        Add a new image in the list of images to process.
        Parameters:
        img - The image
      • clearGraphSegmentations

        public void clearGraphSegmentations()
        Clear the list of graph segmentations to process;
      • clearImages

        public void clearImages()
        Clear the list of images to process
      • clearStrategies

        public void clearStrategies()
        Clear the list of strategy to process;
      • process

        public void process​(MatOfRect rects)
        Based on all images, graph segmentations and stragies, computes all possible rects and return them
        Parameters:
        rects - The list of rects. The first ones are more relevents than the lasts ones.
      • setBaseImage

        public void setBaseImage​(Mat img)
        Set a image used by switch* functions to initialize the class
        Parameters:
        img - The image
      • switchToSelectiveSearchFast

        public void switchToSelectiveSearchFast​(int base_k,
                                                int inc_k,
                                                float sigma)
        Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
        Parameters:
        base_k - The k parameter for the first graph segmentation
        inc_k - The increment of the k parameter for all graph segmentations
        sigma - The sigma parameter for the graph segmentation
      • switchToSelectiveSearchFast

        public void switchToSelectiveSearchFast​(int base_k,
                                                int inc_k)
        Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
        Parameters:
        base_k - The k parameter for the first graph segmentation
        inc_k - The increment of the k parameter for all graph segmentations
      • switchToSelectiveSearchFast

        public void switchToSelectiveSearchFast​(int base_k)
        Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
        Parameters:
        base_k - The k parameter for the first graph segmentation
      • switchToSelectiveSearchFast

        public void switchToSelectiveSearchFast()
        Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
      • switchToSelectiveSearchQuality

        public void switchToSelectiveSearchQuality​(int base_k,
                                                   int inc_k,
                                                   float sigma)
        Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
        Parameters:
        base_k - The k parameter for the first graph segmentation
        inc_k - The increment of the k parameter for all graph segmentations
        sigma - The sigma parameter for the graph segmentation
      • switchToSelectiveSearchQuality

        public void switchToSelectiveSearchQuality​(int base_k,
                                                   int inc_k)
        Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
        Parameters:
        base_k - The k parameter for the first graph segmentation
        inc_k - The increment of the k parameter for all graph segmentations
      • switchToSelectiveSearchQuality

        public void switchToSelectiveSearchQuality​(int base_k)
        Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
        Parameters:
        base_k - The k parameter for the first graph segmentation
      • switchToSelectiveSearchQuality

        public void switchToSelectiveSearchQuality()
        Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
      • switchToSingleStrategy

        public void switchToSingleStrategy​(int k,
                                           float sigma)
        Initialize the class with the 'Single stragegy' parameters describled in CITE: uijlings2013selective.
        Parameters:
        k - The k parameter for the graph segmentation
        sigma - The sigma parameter for the graph segmentation
      • switchToSingleStrategy

        public void switchToSingleStrategy​(int k)
        Initialize the class with the 'Single stragegy' parameters describled in CITE: uijlings2013selective.
        Parameters:
        k - The k parameter for the graph segmentation
      • switchToSingleStrategy

        public void switchToSingleStrategy()
        Initialize the class with the 'Single stragegy' parameters describled in CITE: uijlings2013selective.
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class Algorithm
        Throws:
        java.lang.Throwable