Class Close

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

public class Close
extends java.lang.Thread

The close algorithm simply dilates and then erodes the image using the same kernel.

Author:
Simon Horne.

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Close()
          Default no-arg constructor.
 
Method Summary
static BinaryFast close_image(BinaryFast b, int[] kernel, int iterations)
          Method that takes a binary representation of an image, dilates using the specified kernel and then erodes using the same kernel.
 
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

Close

public Close()
Default no-arg constructor.
Method Detail

close_image

public static BinaryFast close_image(BinaryFast b,
                                     int[] kernel,
                                     int iterations)
Method that takes a binary representation of an image, dilates using the specified kernel and then erodes using the same kernel.
Parameters:
b - The binary representation of the image.
kernel - The array representing the kernel values.
iterations - The number of iterations to be carried out.
Returns:
The binary representation of the new image.