com.alee.utils
Class ImageFilterUtils

java.lang.Object
  extended by com.alee.utils.ImageFilterUtils

public final class ImageFilterUtils
extends java.lang.Object

This class provides a set of utilities to perform image filtering.

Author:
Mikle Garin

Constructor Summary
ImageFilterUtils()
           
 
Method Summary
static java.awt.image.BufferedImage applyBoxBlurFilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst, int hRadius, int vRadius, int iterations)
           
static java.awt.image.BufferedImage applyBoxBlurFilter(java.awt.Image src, java.awt.Image dst, int hRadius, int vRadius, int iterations)
          Applies box blur filter to image
static java.awt.image.BufferedImage applyGaussianFilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst, float radius)
           
static java.awt.image.BufferedImage applyGaussianFilter(java.awt.Image src, java.awt.Image dst, float radius)
          Applies gaussian filter to image
static java.awt.image.BufferedImage applyGrayscaleFilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
static java.awt.image.BufferedImage applyGrayscaleFilter(java.awt.Image src, java.awt.Image dst)
           
static java.awt.image.BufferedImage applyMotionBlurFilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst, float distance, float angle, float rotation, float zoom, float centreX, float centreY)
           
static java.awt.image.BufferedImage applyMotionBlurFilter(java.awt.Image src, java.awt.Image dst, float distance, float angle, float rotation, float zoom, float centreX, float centreY)
          Applies rotation blur filter to image
static java.awt.image.BufferedImage applyOpacityFilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst, int opacity)
           
static java.awt.image.BufferedImage applyOpacityFilter(java.awt.Image src, java.awt.Image dst, int opacity)
          Applies opacity filter to image
static java.awt.image.BufferedImage applyRotationBlurFilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst, float rotation, float centreX, float centreY)
           
static java.awt.image.BufferedImage applyRotationBlurFilter(java.awt.Image src, java.awt.Image dst, float rotation, float centreX, float centreY)
          Applies rotation blur filter to image
static java.awt.image.BufferedImage applyZoomBlurFilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst, float zoom, float centreX, float centreY)
           
static java.awt.image.BufferedImage applyZoomBlurFilter(java.awt.Image src, java.awt.Image dst, float zoom, float centreX, float centreY)
          Applies zoom blur filter to image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFilterUtils

public ImageFilterUtils()
Method Detail

applyBoxBlurFilter

public static java.awt.image.BufferedImage applyBoxBlurFilter(java.awt.Image src,
                                                              java.awt.Image dst,
                                                              int hRadius,
                                                              int vRadius,
                                                              int iterations)
Applies box blur filter to image


applyBoxBlurFilter

public static java.awt.image.BufferedImage applyBoxBlurFilter(java.awt.image.BufferedImage src,
                                                              java.awt.image.BufferedImage dst,
                                                              int hRadius,
                                                              int vRadius,
                                                              int iterations)

applyGrayscaleFilter

public static java.awt.image.BufferedImage applyGrayscaleFilter(java.awt.Image src,
                                                                java.awt.Image dst)

applyGrayscaleFilter

public static java.awt.image.BufferedImage applyGrayscaleFilter(java.awt.image.BufferedImage src,
                                                                java.awt.image.BufferedImage dst)

applyGaussianFilter

public static java.awt.image.BufferedImage applyGaussianFilter(java.awt.Image src,
                                                               java.awt.Image dst,
                                                               float radius)
Applies gaussian filter to image


applyGaussianFilter

public static java.awt.image.BufferedImage applyGaussianFilter(java.awt.image.BufferedImage src,
                                                               java.awt.image.BufferedImage dst,
                                                               float radius)

applyZoomBlurFilter

public static java.awt.image.BufferedImage applyZoomBlurFilter(java.awt.Image src,
                                                               java.awt.Image dst,
                                                               float zoom,
                                                               float centreX,
                                                               float centreY)
Applies zoom blur filter to image


applyZoomBlurFilter

public static java.awt.image.BufferedImage applyZoomBlurFilter(java.awt.image.BufferedImage src,
                                                               java.awt.image.BufferedImage dst,
                                                               float zoom,
                                                               float centreX,
                                                               float centreY)

applyRotationBlurFilter

public static java.awt.image.BufferedImage applyRotationBlurFilter(java.awt.Image src,
                                                                   java.awt.Image dst,
                                                                   float rotation,
                                                                   float centreX,
                                                                   float centreY)
Applies rotation blur filter to image


applyRotationBlurFilter

public static java.awt.image.BufferedImage applyRotationBlurFilter(java.awt.image.BufferedImage src,
                                                                   java.awt.image.BufferedImage dst,
                                                                   float rotation,
                                                                   float centreX,
                                                                   float centreY)

applyMotionBlurFilter

public static java.awt.image.BufferedImage applyMotionBlurFilter(java.awt.Image src,
                                                                 java.awt.Image dst,
                                                                 float distance,
                                                                 float angle,
                                                                 float rotation,
                                                                 float zoom,
                                                                 float centreX,
                                                                 float centreY)
Applies rotation blur filter to image


applyMotionBlurFilter

public static java.awt.image.BufferedImage applyMotionBlurFilter(java.awt.image.BufferedImage src,
                                                                 java.awt.image.BufferedImage dst,
                                                                 float distance,
                                                                 float angle,
                                                                 float rotation,
                                                                 float zoom,
                                                                 float centreX,
                                                                 float centreY)

applyOpacityFilter

public static java.awt.image.BufferedImage applyOpacityFilter(java.awt.Image src,
                                                              java.awt.Image dst,
                                                              int opacity)
Applies opacity filter to image


applyOpacityFilter

public static java.awt.image.BufferedImage applyOpacityFilter(java.awt.image.BufferedImage src,
                                                              java.awt.image.BufferedImage dst,
                                                              int opacity)