Examples of GaussianBlur


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

Examples of ij.plugin.filter.GaussianBlur

    /** 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

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

Examples of ij.plugin.filter.GaussianBlur

    /** 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

Examples of ij.plugin.filter.GaussianBlur

    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

Examples of ij.plugin.filter.GaussianBlur

  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

Examples of javafx.scene.effect.GaussianBlur

        animation.setOnFinished(actionEvent -> parentPane.getChildren().remove(ui));
        return animation;
    }

    public static void blurOut(Node node) {
        GaussianBlur blur = new GaussianBlur(0.0);
        node.setEffect(blur);
        Timeline timeline = new Timeline();
        KeyValue kv = new KeyValue(blur.radiusProperty(), 10.0);
        KeyFrame kf = new KeyFrame(Duration.millis(UI_ANIMATION_TIME_MSEC), kv);
        timeline.getKeyFrames().add(kf);
        timeline.play();
    }
View Full Code Here

Examples of javafx.scene.effect.GaussianBlur

        timeline.getKeyFrames().add(kf);
        timeline.play();
    }

    public static void blurIn(Node node) {
        GaussianBlur blur = (GaussianBlur) node.getEffect();
        Timeline timeline = new Timeline();
        KeyValue kv = new KeyValue(blur.radiusProperty(), 0.0);
        KeyFrame kf = new KeyFrame(Duration.millis(UI_ANIMATION_TIME_MSEC), kv);
        timeline.getKeyFrames().add(kf);
        timeline.setOnFinished(actionEvent -> node.setEffect(null));
        timeline.play();
    }
View Full Code Here

Examples of javafx.scene.effect.GaussianBlur

        button.getChildren().add(gradientRect);

        // build arrowBlurShadow
        SVGPath arrowBlurShadow = SVGPathBuilder.create()
                .fill(Color.BLACK)
                .effect(new GaussianBlur(5))
                .transforms(scale)
                .content("m 17.40912,2.47162 c -8.27303,0 -14.9375,7.04253 -14.9375,15.78125 l 0,59.9375 c 0,8.73872 6.66447,15.75 14.9375,15.75 l 84.625,0 c 8.27303,0 14.9375,-7.01128 14.9375,-15.75 l 0,-59.9375 c 0,-8.73872 -6.66447,-15.78125 -14.9375,-15.78125 l -84.625,0 z m 45.0625,18.15625 27.5625,27.59375 -27.5625,27.5625 0,-15.5625 -33.0625,0 0,-24 33.0625,0 0,-15.59375 z")
                .id("#button-arrow-blur-shadow")
                .build();
        button.getChildren().add(arrowBlurShadow);
View Full Code Here

Examples of javafx.scene.effect.GaussianBlur

        colorAdjust.saturationProperty().bind(when(equal(state, LighthouseBackend.ProjectState.CLAIMED)).then(-0.9).otherwise(0.0));
        if (GuiUtils.isSoftwarePipeline()) {
            // SW pipeline cannot handle gaussian blurs with acceptable performance.
            coverImage.setEffect(colorAdjust);
        } else {
            GaussianBlur blur = new GaussianBlur();
            blur.setInput(colorAdjust);
            animatedBind(coverImage, blur.radiusProperty(), when(isLoading).then(25).otherwise(0.0));
            coverImage.setEffect(blur);
        }
        coverImage.setImage(image);
        coverImage.setClip(new Rectangle(coverImage.getFitWidth(), coverImage.getFitHeight()));
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.