org.tbee.image.filter
Class SmartBlurFilter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SmartBlurFilter
public SmartBlurFilter()
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 © 2012 KnowledgePlaza. All Rights Reserved.