Class MorpherHelp
- java.lang.Object
-
- org.hortonmachine.gears.modules.r.morpher.MorpherHelp
-
public class MorpherHelp extends Object
Some help methods.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Field Summary
Fields Modifier and Type Field Description static int[][]DEFAULT_PRUNE_KERNELstatic int[]DEFAULT3X3KERNELstatic int[][]LINEEND_KERNELstatic int[][]LINEJUNCTIONS_KERNELstatic int[][]SKELETON1_KERNELSee: http://www.imagemagick.org/Usage/morphology/#skeleton1static int[][]SKELETON2_KERNELSee: http://www.imagemagick.org/Usage/morphology/#skeleton2static int[][]SKELETON2VARIANT_KERNELSee: http://www.imagemagick.org/Usage/morphology/#skeleton2static int[][]SKELETON3_KERNELSee: http://www.imagemagick.org/Usage/morphology/#skeleton3
-
Constructor Summary
Constructors Constructor Description MorpherHelp()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetArrayCenterIndex(int[] kernel)static intgetMatrixCenterIndex(int[][] kernel)static int[][]getSquareKernelMatrix(int[] squareKernelArray)static intgetSquareKernelSide(int[] kernel)
-
-
-
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
-
-
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)
-
-