Class Thicken

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

public class Thicken
extends java.lang.Thread

Thicken is an algorithm to thicken 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
Thicken()
           
 
Method Summary
static BinaryFast thicken_image(BinaryFast binary, int[] kernel, int iterations)
          Takes an image and a kernel and applies thicken the specified number of times.
static BinaryFast ThickenBinaryRep(BinaryFast b, int[] kernel)
          Takes a BinaryFast Image and a kernel and applies a single iteration of the thicken algorithm to the image.
 
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

Thicken

public Thicken()
Method Detail

ThickenBinaryRep

public static BinaryFast ThickenBinaryRep(BinaryFast b,
                                          int[] kernel)
Takes a BinaryFast Image and a kernel and applies a single iteration of the thicken algorithm to the image.
Parameters:
b - the BinaryFast image
kernel - the thickening kernel
Returns:
the new thickened BinaryFast image

thicken_image

public static BinaryFast thicken_image(BinaryFast binary,
                                       int[] kernel,
                                       int iterations)
Takes an image and a kernel and applies thicken the specified number of times.
Parameters:
binary - the input image
kernel - the kernel
iteraitons - the specified number of iterations
Returns:
the thickened image