Class Compass

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

public class Compass
extends java.lang.Thread

Compass is an algorithm to apply the compass edge detector to an image

See Also:
code.iface.compass

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Compass()
           
 
Method Summary
 TwoImages apply_compass(int[] src_1d, int width, int height, int kertype, boolean coloured, float scale, int offset)
          Applies the compass edge detector to the input 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

Compass

public Compass()
Method Detail

apply_compass

public TwoImages apply_compass(int[] src_1d,
                               int width,
                               int height,
                               int kertype,
                               boolean coloured,
                               float scale,
                               int offset)
Applies the compass edge detector to the input image
Parameters:
src_1d - The source image as a pixel array
width - width of the destination image in pixels
height - height of the destination image in pixels
kertype - The type of kernel to be applied
coloured - Is the labelling image to be in colour or not
scale - A scale factor to be applied to the image
offset - An offset to be added to the image
Returns:
An object containing the two output images