Class AlgorithmMSER

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.WindowListener, java.lang.Runnable, java.util.EventListener

    public class AlgorithmMSER
    extends AlgorithmBase
    Author:
    Andrea Vedaldi
    • Field Detail

      • delta

        private double delta
      • max_area

        private double max_area
      • min_area

        private double min_area
      • max_variation

        private double max_variation
      • min_diversity

        private double min_diversity
      • bright_on_dark

        private boolean bright_on_dark
      • dark_on_bright

        private boolean dark_on_bright
      • outputVOIType

        private int outputVOIType
      • ndims

        private int ndims
      • dims

        private int[] dims
      • data

        private short[] data
      • sliceSize

        private int sliceSize
    • Constructor Detail

      • AlgorithmMSER

        public AlgorithmMSER​(ModelImage srcImage,
                             double delta,
                             double max_area,
                             double min_area,
                             double max_variation,
                             double min_diversity,
                             boolean bright_on_dark,
                             boolean dark_on_bright,
                             int outputVOIType)
    • Method Detail

      • vl_mser_delete

        private void vl_mser_delete​(AlgorithmMSER.VlMserFilt f)
        Delete MSER filter This function releases the MSER filter and all its resources
        Parameters:
        f - MSER filter to be deleted
      • adv

        private void adv​(int ndims,
                         int[] dims,
                         int[] subs)
        Advance N-dimensional subscript
        Parameters:
        ndims -
        dims -
        subs - subscript to advance
      • climb

        private int climb​(AlgorithmMSER.VlMserReg[] r,
                          int idx)
        Climb the region forest to reach a root The function climbs the regions' forest r[] starting from the node idx to the corresponding root. To speed-up the operation, the function uses the VlMserReg::shortcut field to quickly jump to the root. After the root is reached, all the used shortcuts are updated.
        Parameters:
        r - regions' forest
        idx - starting node
        Returns:
        index of the reached root.