Class Thin

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--Thin

public class Thin
extends java.lang.Thread

Thin is an algorithm to thin a binary image using a 3x3 kernel.

Author:
Simon Horne.

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Thin()
          The default constructor with no parameters.
 
Method Summary
static BinaryFast thin_image(BinaryFast binary, int[] kernel, int iterations)
          Takes an image and a kernel and thins it the specified number of times.
static BinaryFast ThinBinaryRep(BinaryFast b, int[] kernel)
          Takes an image and a kernel and thins it once.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Thin

public Thin()
The default constructor with no parameters.
Method Detail

ThinBinaryRep

public static BinaryFast ThinBinaryRep(BinaryFast b,
                                       int[] kernel)
Takes an image and a kernel and thins it once.
Parameters:
b - the BinaryFast input image
kernel - the thinning kernel
Returns:
the thinned BinaryFast image

thin_image

public static BinaryFast thin_image(BinaryFast binary,
                                    int[] kernel,
                                    int iterations)
Takes an image and a kernel and thins it the specified number of times.
Parameters:
b - the BinaryFast input image
kernel - the thinning kernel
iterations - required
Returns:
the thinned BinaryFast image