Package javax.media.jai

Examples of javax.media.jai.InterpolationBilinear


            ReferencedEnvelope.reference(envelope),
            new Rectangle(0,0,50,50),
            gtoem.createAffineTransform().createInverse());
   
    // bilinear
    RenderedImage image = renderer.renderImage(gc, rs, new InterpolationBilinear(), null, 256, 256);
    assertNotNull(image);
    assertNotNull(PlanarImage.wrapRenderedImage(image));
    assertTrue(image.getColorModel() instanceof IndexColorModel);
   
    // nearest
View Full Code Here


    // resample this coverage
    final ParameterValueGroup pvg= resampleFactory.getParameters();
    pvg.parameter("Source").setValue(gc);
    pvg.parameter("GridGeometry").setValue(newGridGeometry);
    pvg.parameter("InterpolationType").setValue(new InterpolationBilinear());
    return (GridCoverage2D) resampleFactory.doOperation(pvg, hints);

  }
View Full Code Here

            break;
          case Filtered:
            newImage = Utils.filteredSubsample(currentImage,baseTC,downsampleStep,lowPassFilter);
            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:
View Full Code Here

        // Reader disposal
        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 };
View Full Code Here

    public void testCoverageWithBilinearInterp() throws MismatchedDimensionException,
            TransformException {
        // Execution of the RasterAsPointCollectionProcess setting hemisphere, scaleFactor and bilinear interpolation
        boolean hemisphere = true;
        float scaleFactor = 2.0f;
        Interpolation interp = new InterpolationBilinear();
        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.InterpolationBilinear

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.