Examples of blur1Direction()


Examples of ij.plugin.filter.GaussianBlur.blur1Direction()

    float[] hist = new float[256];
    for (int i=0; i<256; i++)
      hist[i] = stats.histogram[i];
    FloatProcessor fp = new FloatProcessor(256, 1, hist, null);
    GaussianBlur gb = new GaussianBlur();
    gb.blur1Direction(fp, 2.0, 0.01, true, 0);
    float maxCount=0f, sum=0f, mean, count;
    int mode = 0;
    for (int i=0; i<256; i++) {
      count = hist[i];
      sum += count;
View Full Code Here

Examples of ij.plugin.filter.GaussianBlur.blur1Direction()

  int[] smooth(int[] a, int n) {
    FloatProcessor fp = new FloatProcessor(n, 1);
    for (int i=0; i<n; i++)
      fp.putPixelValue(i, 0, a[i]);
    GaussianBlur gb = new GaussianBlur();
    gb.blur1Direction(fp, 2.0, 0.01, true, 0);
    for (int i=0; i<n; i++)
      a[i] = (int)Math.round(fp.getPixelValue(i, 0));
    return a;
  }
 
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.