Package org.jwildfire.transform

Examples of org.jwildfire.transform.ConvolveTransformer


public class Gauss3x3PreFilter implements PreFilter {

  @Override
  public void apply(SimpleImage pImage) {
    ConvolveTransformer transformer = new ConvolveTransformer();
    transformer.initDefaultParams(pImage);
    transformer.setKernelType(KernelType.GAUSSIAN_BLUR_3x3);
    transformer.transformImage(pImage);
  }
View Full Code Here


public class Gauss5x5PreFilter implements PreFilter {

  @Override
  public void apply(SimpleImage pImage) {
    ConvolveTransformer transformer = new ConvolveTransformer();
    transformer.initDefaultParams(pImage);
    transformer.setKernelType(KernelType.GAUSSIAN_BLUR_5x5);
    transformer.transformImage(pImage);
  }
View Full Code Here

  public static double calculateCoverage(SimpleImage pImg, int bgRed, int bgGreen, int bgBlue, boolean useFilter) {
    SimpleImage img;
    if (useFilter) {
      SimpleImage filteredImg = new SimpleImage(pImg.getBufferedImg(), pImg.getImageWidth(), pImg.getImageHeight());
      ConvolveTransformer transformer = new ConvolveTransformer();
      transformer.initDefaultParams(filteredImg);
      transformer.setKernelType(KernelType.SOBEL_3X3);
      transformer.transformImage(filteredImg);
      img = filteredImg;
    }
    else {
      img = pImg;
    }
View Full Code Here

TOP

Related Classes of org.jwildfire.transform.ConvolveTransformer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.