Java BufferedImage Filter filterImage(BufferedImageOp bufferedImageOp, BufferedImage srcImg, BufferedImage dstImg)

Here you can find the source of filterImage(BufferedImageOp bufferedImageOp, BufferedImage srcImg, BufferedImage dstImg)

Description

Entry point for image filtering operation.

License

Open Source License

Declaration

public static BufferedImage filterImage(BufferedImageOp bufferedImageOp, BufferedImage srcImg,
        BufferedImage dstImg) 

Method Source Code

//package com.java2s;
/**/*from  w w  w  . j av  a  2 s  .  co m*/
 * Copyright (c) 2014-2015 by Wen Yu.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Any modifications to this file must keep this entire header intact.
 *
 * Change History - most recent changes go on top of previous changes
 *
 * IMGUtils.java
 *
 * Who   Date       Description
 * ====  =========  ==============================================================
 * WY    03Feb2015  Added createThumbnail() to create a thumbnail from an image
 * WY    27Jan2015  Added createThumbnail8BIM() to wrap a BufferedImage to _8BIM
 * WY    22Jan2015  Factored out guessImageType(byte[])
 * WY    24Dec2014  Rename CMYK2RGB() to iccp2rgbRaster()
 * WY    17Dec2014  Bug fix for rgb2bilevelDither() to bypass transparent pixels
 * WY    03Dec2014  Bug fix for getRGB() to fall back to BufferedImage.getRGB()
 * WY    26Nov2014  Changed rgb2bilevel() to take into account transparency
 * WY    03Nov2014  Added CMYK2RGB() to convert CMYK raster to RGB raster
 * WY    22Sep2014  Added guessImageType() to auto detect image type
 * WY    13Aug2014  Added RGB2YCCK_Inverted() to support YCCK JPEG
 * WY    05May2014  Added getRGB() and getRGB2() to replace BufferedImage.getRGB()
 */

import java.awt.image.BufferedImage;
import java.awt.image.BufferedImageOp;

public class Main {
    /**
      * Entry point for image filtering operation. Simply delegates to the underlying ImageFilter.
     */
    public static BufferedImage filterImage(BufferedImageOp bufferedImageOp, BufferedImage srcImg,
            BufferedImage dstImg) {
        return bufferedImageOp.filter(srcImg, dstImg);
    }
}

Related

  1. applyFilter(LookupTable lookupTable, BufferedImage srcImg)
  2. filter(BufferedImage image, BufferedImageOp op)
  3. filterContrast(BufferedImage img)
  4. filterDetectLines(BufferedImage img)
  5. filterFillHoles(BufferedImage img)
  6. filterMedian(BufferedImage img)
  7. filterScale(BufferedImage img, float ratio)
  8. filterSmooth(BufferedImage img)
  9. filterThreshold(BufferedImage img, int threshold)