Package java.awt.image.renderable

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


    pb.removeSources();
    pb.addSource(piB);
    piB = (PlanarImage) JAI.create("dft", pb);
    // correlation
    pb.removeSources();
    pb.removeParameters();
    pb.addSource(piA);
    pb.addSource(piB);
    PlanarImage corr = (PlanarImage) JAI.create("multiplycomplex", pb);
    // inverse fourier transform
    pb.removeSources();
View Full Code Here


    pb.addSource(piA);
    pb.addSource(piB);
    PlanarImage corr = (PlanarImage) JAI.create("multiplycomplex", pb);
    // inverse fourier transform
    pb.removeSources();
    pb.removeParameters();
    pb.addSource(corr);
    pb.add(DFTDescriptor.SCALING_UNITARY);
    pb.add(DFTDescriptor.COMPLEX_TO_REAL);
    corr = (PlanarImage) JAI.create("idft", pb);
    // rearrange wrapped around image
View Full Code Here

    pb.add(DFTDescriptor.SCALING_UNITARY);
    pb.add(DFTDescriptor.COMPLEX_TO_REAL);
    corr = (PlanarImage) JAI.create("idft", pb);
    // rearrange wrapped around image
    pb.removeSources();
    pb.removeParameters();
    pb.addSource(corr);
    pb.add(corr.getWidth() / 2);
    pb.add(corr.getHeight() / 2);
    corr = (PlanarImage) JAI.create("periodicshift", pb);
    // crop interrogation area in case of zero padding
View Full Code Here

    pb.add(corr.getHeight() / 2);
    corr = (PlanarImage) JAI.create("periodicshift", pb);
    // crop interrogation area in case of zero padding
    if (w < corr.getWidth() || h < corr.getHeight()) {
      pb.removeSources();
      pb.removeParameters();
      pb.addSource(corr);
      pb.add((float) -(corr.getWidth() - w) / 2);
      pb.add((float) -(corr.getHeight() - h) / 2);
      pb.add(null);
      corr = (PlanarImage) JAI.create("translate", pb);
View Full Code Here

      pb.add((float) -(corr.getWidth() - w) / 2);
      pb.add((float) -(corr.getHeight() - h) / 2);
      pb.add(null);
      corr = (PlanarImage) JAI.create("translate", pb);
      pb.removeSources();
      pb.removeParameters();
      pb.addSource(corr);
      pb.add(0f);
      pb.add(0f);
      pb.add((float) w);
      pb.add((float) h);
View Full Code Here

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

    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);
    return (JAI.create("translate", pb));
View Full Code Here

    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);
    pb.add((float) dy);
View Full Code Here

        final RenderedImage firstBand = JAI.create("bandSelect", sourceImage, new int[] { 0 });

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

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

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

        image = (RenderedImage) sourceImage;
        invalidateStatistics();
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.