Class BinaryMorphology


  • public class BinaryMorphology
    extends Object
    Helper class for morphology operations on binary image data.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • BinaryMorphology

        public BinaryMorphology()
    • Method Detail

      • erode

        public static boolean[][] erode​(boolean[][] data)
        Performs an erode operation.
        Parameters:
        data - the data to "erode"
        Returns:
        the eroded data
      • dilate

        public static boolean[][] dilate​(boolean[][] data)
        Performs a dilate operation.
        Parameters:
        data - the data to "dilate"
        Returns:
        the dilated data