org.jmage.filter.spatial
Class UnsharpMaskFilter
java.lang.Object
org.jmage.filter.spatial.ConvolutionFilter
org.jmage.filter.spatial.Convolution3x3Filter
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
|
Method Summary |
javax.media.jai.PlanarImage |
filter(javax.media.jai.PlanarImage image)
Filter the image |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.log4j.Logger log
UnsharpMaskFilter
public UnsharpMaskFilter()
- Initialize the ImageFilter
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.