Class MorpherHelp


  • public class MorpherHelp
    extends Object
    Some help methods.
    Author:
    Andrea Antonello (www.hydrologis.com)
    • Field Detail

      • DEFAULT3X3KERNEL

        public static int[] DEFAULT3X3KERNEL
      • SKELETON1_KERNEL

        public static int[][] SKELETON1_KERNEL
        See: http://www.imagemagick.org/Usage/morphology/#skeleton1
      • SKELETON2_KERNEL

        public static int[][] SKELETON2_KERNEL
        See: http://www.imagemagick.org/Usage/morphology/#skeleton2
      • SKELETON2VARIANT_KERNEL

        public static int[][] SKELETON2VARIANT_KERNEL
        See: http://www.imagemagick.org/Usage/morphology/#skeleton2
      • SKELETON3_KERNEL

        public static int[][] SKELETON3_KERNEL
        See: http://www.imagemagick.org/Usage/morphology/#skeleton3
      • DEFAULT_PRUNE_KERNEL

        public static int[][] DEFAULT_PRUNE_KERNEL
      • LINEEND_KERNEL

        public static int[][] LINEEND_KERNEL
      • LINEJUNCTIONS_KERNEL

        public static int[][] LINEJUNCTIONS_KERNEL
    • Constructor Detail

      • MorpherHelp

        public MorpherHelp()
    • Method Detail

      • getSquareKernelSide

        public static int getSquareKernelSide​(int[] kernel)
      • getArrayCenterIndex

        public static int getArrayCenterIndex​(int[] kernel)
      • getMatrixCenterIndex

        public static int getMatrixCenterIndex​(int[][] kernel)
      • getSquareKernelMatrix

        public static int[][] getSquareKernelMatrix​(int[] squareKernelArray)