Class Laplacian

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--Convolution
              |
              +--Laplacian

public class Laplacian
extends Convolution

The laplacian smoothing operator code.


Field Summary
 int outputHeight
          The height of the output image after applying the convolution.
 int outputWidth
          The width of the output image after applying the convolution.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Laplacian()
          Default no-arg constructor.
 
Method Summary
 int[] laplacian_image(int[] input, int width, int height, int kernel, double scale, double offset)
          Takes an input image and applies the required laplacian smoothing and returns the output image.
 
Methods inherited from class Convolution
applyConvolution, convolution_image, convolution2D, convolution2DPadded, convolutionDouble, convolutionDoublePadded, convolutionType1, convolutionType2, doublesToValidPixels, singlePixelConvolution
 
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
 

Field Detail

outputWidth

public int outputWidth
The width of the output image after applying the convolution.

outputHeight

public int outputHeight
The height of the output image after applying the convolution.
Constructor Detail

Laplacian

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

laplacian_image

public int[] laplacian_image(int[] input,
                             int width,
                             int height,
                             int kernel,
                             double scale,
                             double offset)
Takes an input image and applies the required laplacian smoothing and returns the output image.
Parameters:
input - The input image integer array.
width - The input image width.
height - The input image height.
kernel - The kernel type selected, 1,2 or 3.
scale - the scale factor for the output pixel values
offset - the offset value for the output pixel values
Returns:
The output image integer array.