Examples of removeSources()


Examples of java.awt.image.renderable.ParameterBlock.removeSources()

          }
        }
      }
      // add correlation matrix
      pb.removeParameters();
      pb.removeSources();
      pb.addSource(corr[c]);
      pb.addSource(tmpCorr);
      tmpCorrSum = JAI.create("add", pb, null);
      corr[c] = tmpCorrSum;
    }
View Full Code Here

Examples of java.awt.image.renderable.ParameterBlock.removeSources()

    this.jpiv = jpiv;
    this.pathname = pathname;
    PlanarImage pi = new PivImg(jpiv, filelist[0]).getAsPlanarImageFloat();
    ParameterBlock pb = new ParameterBlock();
    for (int f = 1; f < filelist.length; f++) {
      pb.removeSources();
      pb.addSource(pi);
      pb.addSource(new PivImg(jpiv, filelist[f]).getAsPlanarImageFloat());
      JAI.create("add", pb);
    }
    this.pi = pi;
View Full Code Here

Examples of java.awt.image.renderable.ParameterBlock.removeSources()

    pb.add((float) x);
    pb.add((float) y);
    pb.add((float) dx);
    pb.add((float) dy);
    PlanarImage subImg = JAI.create("crop", pb);
    pb.removeSources();
    pb.removeParameters();
    pb.addSource(subImg);
    pb.add((float) -x);
    pb.add((float) -y);
    pb.add(null);
View Full Code Here

Examples of java.awt.image.renderable.ParameterBlock.removeSources()

    pb.addSource(pi);
    pb.add(-x);
    pb.add(-y);
    pb.add(Interpolation.getInstance(Interpolation.INTERP_BILINEAR));
    PlanarImage transImg = JAI.create("translate", pb);
    pb.removeSources();
    pb.removeParameters();
    pb.addSource(transImg);
    pb.add((float) 0.0);
    pb.add((float) 0.0);
    pb.add((float) dx);
View Full Code Here

Examples of java.awt.image.renderable.ParameterBlock.removeSources()

        // adding to the image
        final int length = writeband - numBands;
        for (int i = 0; i < length; i++) {
            pb.removeParameters();
            pb.removeSources();

            pb.addSource(sourceImage);
            pb.addSource(firstBand);
            sourceImage = JAI.create("bandmerge", pb);
View Full Code Here

Examples of java.awt.image.renderable.ParameterBlock.removeSources()

            pb.addSource(sourceImage);
            pb.addSource(firstBand);
            sourceImage = JAI.create("bandmerge", pb);

            pb.removeParameters();
            pb.removeSources();
        }

        image = (RenderedImage) sourceImage;
        invalidateStatistics();
View Full Code Here

Examples of java.awt.image.renderable.ParameterBlock.removeSources()

    final PlanarImage histogramImage = JAI.create("histogram", pb,
        new RenderingHints(JAI.KEY_TILE_CACHE, null));
    final Histogram hist = (Histogram) histogramImage
        .getProperty("histogram");
    pb.removeParameters();
    pb.removeSources();

    // /////////////////////////////////////////////////////////////////////
    //
    // Write things
    //
View Full Code Here

Examples of java.awt.image.renderable.ParameterBlock.removeSources()

             * Since there is no interpolation to perform, use the native view (which may be
             * packed or geophysics - it is just the view which is closest to original data).
             */
            sourceCoverage = sourceCoverage.view(ViewType.NATIVE);
            sourceImage = PlanarImage.wrapRenderedImage(sourceCoverage.getRenderedImage());
            paramBlk.removeSources();
            paramBlk.addSource(sourceImage);
            if (targetBB.equals(sourceBB)) {
                /*
                 * Optimization in case we have nothing to do, not even a crop. Reverts to the
                 * original coverage BEFORE to creates Resampler2D. Note that while there is
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.