org.tbee.image.filter
Class SmartBlurFilter

java.lang.Object
  extended by org.tbee.image.filter.SmartBlurFilter
All Implemented Interfaces:
Filter

public class SmartBlurFilter
extends Object
implements Filter

SmartBlur; only blur surfaces, but preserve outlines and fine details. Copied from http://asserttrue.blogspot.com/2010/08/implementing-smart-blur-in-java.html


Constructor Summary
SmartBlurFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage image)
           
 double getLerpAmount(double a, double cutoff)
           
 double lerp(double a, double b, double amt)
           
 double rmsError(int[] pixels)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmartBlurFilter

public SmartBlurFilter()
Method Detail

lerp

public double lerp(double a,
                   double b,
                   double amt)

getLerpAmount

public double getLerpAmount(double a,
                            double cutoff)

rmsError

public double rmsError(int[] pixels)

filter

public BufferedImage filter(BufferedImage image)
Specified by:
filter in interface Filter


Copyright © 2011 KnowledgePlaza. All Rights Reserved.