Class Distance

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

public class Distance
extends java.lang.Thread

Distance is an algorithm to create a distance transform grey level image from a binary image.

Author:
Simon Horne.

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Distance()
          Default no-args constructor.
 
Method Summary
 BinaryFast distance_image(BinaryFast binary, double scale, double offset)
          Takes a BinaryFast representation and produces a distance transform with the grey-level image stored in the BinaryFast pixels 2D array.
 BinaryFast distanceSingleIteration(BinaryFast binary, int i)
          Performs a single thinning and colours the thinned pixels accordingly.
 
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

Distance

public Distance()
Default no-args constructor.
Method Detail

distanceSingleIteration

public BinaryFast distanceSingleIteration(BinaryFast binary,
                                          int i)
Performs a single thinning and colours the thinned pixels accordingly.
Parameters:
binary - The BinaryFast representation of the input image.
i - The grey-level with which to colour the thinned pixels.
Returns:
The BinaryFast representation of the thinned image.

distance_image

public BinaryFast distance_image(BinaryFast binary,
                                 double scale,
                                 double offset)
Takes a BinaryFast representation and produces a distance transform with the grey-level image stored in the BinaryFast pixels 2D array.
Parameters:
binary - The input image.
Returns:
The output grey-level image.