Examples of PImage


Examples of processing.core.PImage

    img.loadPixels();
    return img;
  }

  public PImage getNormalizedImage(int nX, int nY,float goalMin,float goalMax, double[] brightness) {
    PImage img = parent.createImage(nX, nY, PApplet.RGB);
    double min = MatrixMath.min(brightness);
    double max = MatrixMath.max(brightness);
    for (int i = 0; i < brightness.length; i++) {
      float cB = PApplet.map((float) brightness[i], (float) min,
          (float) max, goalMin, goalMax);
      img.pixels[i] = parent.color(cB);
    }
    img.loadPixels();
    return img;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.