Class AlgorithmMSER

All Implemented Interfaces:
ActionListener, WindowListener, Runnable, EventListener

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

    • VL_MSER_PIX_MAXVAL

      private static final int VL_MSER_PIX_MAXVAL
      See Also:
    • VL_MSER_VOID_NODE

      private static final int VL_MSER_VOID_NODE
      See Also:
    • POINTS_ONLY

      private static final int POINTS_ONLY
      See Also:
    • ELLIPSES_ONLY

      private static final int ELLIPSES_ONLY
      See Also:
    • POINTS_AND_ELLIPSES

      private static final int POINTS_AND_ELLIPSES
      See Also:
    • 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 Details

    • 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 Details

    • runAlgorithm

      public void runAlgorithm()
      Start algorithm.
      Specified by:
      runAlgorithm in class AlgorithmBase
    • vl_mser_ell_fit

      private void vl_mser_ell_fit(AlgorithmMSER.VlMserFilt f)
    • 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
    • vl_mser_process

      private void vl_mser_process(AlgorithmMSER.VlMserFilt f, short[] im)
    • 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.
    • vl_mser_new

      private AlgorithmMSER.VlMserFilt vl_mser_new(int ndims, int[] dims)