Class Log

java.lang.Object
  |
  +--Log

public class Log
extends java.lang.Object

The laplacian of Gaussian operator code.

Author:
Simon Horne.

Field Summary
 int height
          The input image height.
 int height2
          The output image height.
 int width
          The input image width.
 int width2
          The output image width.
 
Constructor Summary
Log(int k, double t)
          Constructor that generates the kernel from the kernel size and theta.
 
Method Summary
 boolean kernelValid(double t)
          Boolean tests for valid kernel construction from the kernel size and theta.
 int[] log_image(int[] input, int width, int height, double scale, double offset)
          Takes an input image and returns the output image after applying the laplacian of gaussian operator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

public int width
The input image width.

height

public int height
The input image height.

width2

public int width2
The output image width.

height2

public int height2
The output image height.
Constructor Detail

Log

public Log(int k,
           double t)
Constructor that generates the kernel from the kernel size and theta.
Parameters:
k - The kernel size.
t - the theta value.
Method Detail

kernelValid

public boolean kernelValid(double t)
Boolean tests for valid kernel construction from the kernel size and theta.
Parameters:
t - the theta value.

log_image

public int[] log_image(int[] input,
                       int width,
                       int height,
                       double scale,
                       double offset)
Takes an input image and returns the output image after applying the laplacian of gaussian operator.
Parameters:
input - The input image integer array.
width - The image width.
height - The image height.
Returns:
The output image integer array.