Class LineDetector

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

public class LineDetector
extends java.lang.Thread

LineDetector is an algorithm to find the lines in an image

See Also:
code.iface.linedet

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LineDetector()
           
 
Method Summary
 TwoImages apply_lineDetect(int[] src_1d, int width, int height, int kernels, int thresh, boolean choice, float scale, float offset)
          Applies the line 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

LineDetector

public LineDetector()
Method Detail

apply_lineDetect

public TwoImages apply_lineDetect(int[] src_1d,
                                  int width,
                                  int height,
                                  int kernels,
                                  int thresh,
                                  boolean choice,
                                  float scale,
                                  float offset)
Applies the line 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
kernels - Integer which determines which kernels are applied : 1 = Kernel 1, 2 = Kernel 2, 4 = Kernel 3, 8 = Kernel 4. These values are summed and the result is in kernels
thresh - The threshold limit for kernel detection
choice - Boolean which specifies whether to apply thresholding
scale - The scale value to apply to the output
offset - The offset to add to the output
Returns:
The output array with the line edges and the colored edge image