org.jmage.filter.spatial
Class UnsharpMaskFilter

java.lang.Object
  extended by org.jmage.filter.spatial.ConvolutionFilter
      extended by org.jmage.filter.spatial.Convolution3x3Filter
          extended by org.jmage.filter.spatial.UnsharpMaskFilter
All Implemented Interfaces:
ImageFilter

public class UnsharpMaskFilter
extends Convolution3x3Filter

UnsharpMaskFilter creates a blurred version of the original image, using the Mean Filter. It then subtracts this blurred version from the original image, resulting in a contrast enhanced version. This contrast enhanced version gets added to the original image to achieve a sharpening effect, also known as "Unsharp Mask".


Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
UnsharpMaskFilter()
          Initialize the ImageFilter
 
Method Summary
 javax.media.jai.PlanarImage filter(javax.media.jai.PlanarImage image)
          Filter the image
 
Methods inherited from class org.jmage.filter.spatial.ConvolutionFilter
normalize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
Constructor Detail

UnsharpMaskFilter

public UnsharpMaskFilter()
Initialize the ImageFilter

Method Detail

filter

public javax.media.jai.PlanarImage filter(javax.media.jai.PlanarImage image)
                                   throws FilterException
Filter the image

Specified by:
filter in interface ImageFilter
Overrides:
filter in class Convolution3x3Filter
Parameters:
image - the image
Returns:
the filtered image
Throws:
FilterException - if an error occurs during filtering


Copyright © 2004-2008 Sourceforge. All Rights Reserved.