Package javax.media.jai

Examples of javax.media.jai.InterpolationBicubic


        JAIImageToken jaiImageToken = (JAIImageToken) input.get(0);
        RenderedOp oldImage = jaiImageToken.getValue();

        switch (_interpolationType) {
        case _BICUBIC:
            _interpolation = new InterpolationBicubic(_subSampleBits);
            break;

        case _BICUBIC2:
            _interpolation = new InterpolationBicubic2(_subSampleBits);
            break;
View Full Code Here


        parameters.add((float) _xShift);
        parameters.add((float) _yShift);

        switch (_interpolationType) {
        case _BICUBIC:
            parameters.add(new InterpolationBicubic(_subSampleBits));
            break;

        case _BICUBIC2:
            parameters.add(new InterpolationBicubic2(_subSampleBits));
            break;
View Full Code Here

        float angle = (float) (_degrees * (Math.PI / 180.0F));
        parameters.add(angle);

        switch (_interpolationType) {
        case _BICUBIC:
            parameters.add(new InterpolationBicubic(_subSampleBits));
            break;

        case _BICUBIC2:
            parameters.add(new InterpolationBicubic2(_subSampleBits));
            break;
View Full Code Here

      create(sourceImage,
       new Float(xScale),
       new Float(yScale),
       new Float(0F),
       new Float(0F),
       new InterpolationBicubic(32),
       null);

  PlanarImage planarImg = operator.createInstance();

  return planarImg;
View Full Code Here

            break;
          case Bilinear:
            newImage = Utils.subsample(currentImage,baseTC,new InterpolationBilinear(),downsampleStep,borderExtender);
            break
          case Bicubic:
            newImage = Utils.subsample(currentImage,baseTC,new InterpolationBicubic(2),downsampleStep,borderExtender);
            break;
          case Nearest:
            newImage = Utils.subsample(currentImage,baseTC, new InterpolationNearest(),downsampleStep,borderExtender);
            break;           
          default:
View Full Code Here

        reader.dispose();

        // Definition of the interpolation type
        nearest = new InterpolationNearest();
        bilinear = new InterpolationBilinear();
        bicubic = new InterpolationBicubic(8);

        // Definition of the background values
        nodata = new double[] { 0 };

        // Definition of the transformation. (The final image should be doubled and translated)
View Full Code Here

    public void testCoverageWithBicubicInterp() throws MismatchedDimensionException,
            TransformException {
        // Execution of the RasterAsPointCollectionProcess setting hemisphere, scaleFactor and bicubic interpolation
        boolean hemisphere = true;
        float scaleFactor = 2.0f;
        Interpolation interp = new InterpolationBicubic(8);
        SimpleFeatureCollection collection = process.execute(coverage, null, scaleFactor, interp,
                hemisphere);
        // Check if the points are exactly as the number of pixel number
        Assert.assertEquals((int) (pixelNumber * scaleFactor * scaleFactor), collection.size());
        // Check if each Point Attribute contains the same values of the Input coverage
View Full Code Here

TOP

Related Classes of javax.media.jai.InterpolationBicubic

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.