org.jmage.filter.spatial
Class EdgeEnhancementFilter

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

public class EdgeEnhancementFilter
extends Convolution3x3Filter

EdgeEnhancementFilter uses the Laplacian convolution matrix to highlight areas of rapid intensity change in the picture. The resulting image is then subtracted from the original image and as a result a picture with harder edge contrast is produced. This effect is also known as "Edge Enhancement" and is used widely in the video and dvd industry to master films for small tv screens.


Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
EdgeEnhancementFilter()
          Creates an EdgeEnhancementFilter
 
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

EdgeEnhancementFilter

public EdgeEnhancementFilter()
Creates an EdgeEnhancementFilter

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.