Class Thin
- java.lang.Object
-
- org.hortonmachine.gears.modules.r.morpher.Thin
-
public class Thin extends Object
Thin is an algorithm to thin a binary image using a 3x3 kernel.- Author:
- Simon Horne.
-
-
Constructor Summary
Constructors Constructor Description Thin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessLineendings(BinaryFast binary, int[][] kernels)voidprocessPruning(BinaryFast binary, int iterations, int[][] kernels)voidprocessSkeleton(BinaryFast binary, int[][] kernel)Takes an image and a kernel and thins it the specified number of times.
-
-
-
Method Detail
-
processSkeleton
public void processSkeleton(BinaryFast binary, int[][] kernel)
Takes an image and a kernel and thins it the specified number of times.- Parameters:
binary- the BinaryFast input image.kernel- the kernel to apply.
-
processPruning
public void processPruning(BinaryFast binary, int iterations, int[][] kernels)
-
processLineendings
public void processLineendings(BinaryFast binary, int[][] kernels)
-
-