Package ij.plugin.filter

Examples of ij.plugin.filter.GaussianBlur


        sharpenFloat((FloatProcessor)ip, sigma, (float)weight);
    }
   
    /** Unsharp Mask filtering of a float image. 'fp' must have a valid snapshot. */
    public void sharpenFloat(FloatProcessor fp, double sigma, float weight) {
        if (gb == null) gb = new GaussianBlur();
        gb.blurGaussian(fp, sigma, sigma, 0.01);
        if (Thread.currentThread().isInterrupted()) return;
        float[] pixels = (float[])fp.getPixels();
        float[] snapshotPixels = (float[])fp.getSnapshotPixels();
        int width = fp.getWidth();
View Full Code Here


    /** Since most computing time is spent in GaussianBlur, forward the
     * information about the number of passes to Gaussian Blur. The
     * ProgressBar will be handled by GaussianBlur. */
    public void setNPasses(int nPasses) {
        if (gb == null) gb = new GaussianBlur();
        gb.setNPasses(nPasses);
    }
View Full Code Here

        sharpenFloat((FloatProcessor)ip, sigma, (float)weight);
    }
   
    /** Unsharp Mask filtering of a float image. 'fp' must have a valid snapshot. */
    public void sharpenFloat(FloatProcessor fp, double sigma, float weight) {
        if (gb == null) gb = new GaussianBlur();
        gb.blurGaussian(fp, sigma, sigma, 0.01);
        if (Thread.currentThread().isInterrupted()) return;
        float[] pixels = (float[])fp.getPixels();
        float[] snapshotPixels = (float[])fp.getSnapshotPixels();
        int width = fp.getWidth();
View Full Code Here

    /** Since most computing time is spent in GaussianBlur, forward the
     * information about the number of passes to Gaussian Blur. The
     * ProgressBar will be handled by GaussianBlur. */
    public void setNPasses(int nPasses) {
        if (gb == null) gb = new GaussianBlur();
        gb.setNPasses(nPasses);
    }
View Full Code Here

    histogram[stats.mode] = originalModeCount;
    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

  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

Related Classes of ij.plugin.filter.GaussianBlur

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.