com.meltingice.caman.filters
Class Sharpen

java.lang.Object
  extended by com.meltingice.caman.CamanFilter
      extended by com.meltingice.caman.filters.Sharpen

public class Sharpen
extends CamanFilter

Sharpens an image by a variable amount using convolution

Version:
1.0
Author:
Ryan LeFevre

Constructor Summary
Sharpen()
           
 
Method Summary
 double[] getKernel()
          If making a filter that requires image convolution, this returns the kernel that will be applied to the image.
 void precomputeParams()
          Allows the filter to precompute any required values before CamanFilter.process(int[]) is executed.
 
Methods inherited from class com.meltingice.caman.CamanFilter
getParamDouble, getParamInt, process, set, set, type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sharpen

public Sharpen()
Method Detail

precomputeParams

public void precomputeParams()
Description copied from class: CamanFilter
Allows the filter to precompute any required values before CamanFilter.process(int[]) is executed. This helps with speed so that arguments don't have to be recomputed for every pixel.

Overrides:
precomputeParams in class CamanFilter

getKernel

public double[] getKernel()
Description copied from class: CamanFilter
If making a filter that requires image convolution, this returns the kernel that will be applied to the image.

Overrides:
getKernel in class CamanFilter
Returns:
The convolution matrix