Package javax.media.jai

Examples of javax.media.jai.InterpolationBilinear


        case _BICUBIC2:
            _interpolation = new InterpolationBicubic2(_subSampleBits);
            break;

        case _BILINEAR:
            _interpolation = new InterpolationBilinear(_subSampleBits);
            break;

        case _NEARESTNEIGHBOR:
            _interpolation = new InterpolationNearest();
            break;
View Full Code Here


        case _BICUBIC2:
            parameters.add(new InterpolationBicubic2(_subSampleBits));
            break;

        case _BILINEAR:
            parameters.add(new InterpolationBilinear(_subSampleBits));
            break;

        case _NEARESTNEIGHBOR:
            parameters.add(new InterpolationNearest());
            break;
View Full Code Here

        case _BICUBIC2:
            parameters.add(new InterpolationBicubic2(_subSampleBits));
            break;

        case _BILINEAR:
            parameters.add(new InterpolationBilinear(_subSampleBits));
            break;

        case _NEARESTNEIGHBOR:
            parameters.add(new InterpolationNearest());
            break;
View Full Code Here

        if ( renderingHeight > maxHeight ) {
            renderingHeight = maxHeight;
            renderingWidth = (int) (renderingHeight * cropW / cropH);
        }
        RenderingHints hints = new RenderingHints( null );
        hints.put( JAI.KEY_INTERPOLATION, new InterpolationBilinear() );
       
        RenderedImage rendered = null;
        if ( lastRendering != null && lastRendering instanceof PlanarImage ) {
            ((PlanarImage)lastRendering).dispose();
            System.gc();
View Full Code Here

                (int)(getHeight()*scale), isLowQualityAllowed );
        if ( previousCorrectedImage != original ) {
            buildPipeline( original );
        }
        RenderingHints hints = new RenderingHints( null );
        hints.put( JAI.KEY_INTERPOLATION, new InterpolationBilinear() );
        if ( lastRendering != null && lastRendering instanceof PlanarImage ) {
            ((PlanarImage)lastRendering).dispose();
            System.gc();
        }
        RenderedImage rendered = null;
View Full Code Here

         concatenated with scaling from MultiresolutionImage to desired resolution.
         This transformation obeys KYE_INTERPOLATION hint so we must set it here,
         otherwise nearest neighborough interpolation will be used regardless of
         the settings on parameter block.
         */
        hints.put( JAI.KEY_INTERPOLATION, new InterpolationBilinear() );
        rotatedImage = JAI.createRenderable( "affine", rotParams, hints );
       
        ParameterBlockJAI cropParams = new ParameterBlockJAI( "crop" );
        cropParams.addSource( rotatedImage );
        float cropWidth = (float) (cropMaxX - cropMinX);
View Full Code Here

    pb.addSource(pi); // The source image
    pb.add(factor); // The xScale
    pb.add(factor); // The yScale
    pb.add(0.0F); // The x translation
    pb.add(0.0F); // The y translation
    pb.add(new InterpolationBilinear()); // The interpolation
    // Create the scale operation
    return (JAI.create("scale", pb, null));
  }
View Full Code Here

    pb.addSource(subImg);
    pb.add((float) (-subImg.getMinX() - subImg.getWidth() / 2));
    pb.add((float) (-subImg.getMinY() - subImg.getHeight() / 2));
    subImg = JAI.create("translate", pb, null);
    // specify the type of interpolation for the shear operation.
    InterpolationBilinear interp = new InterpolationBilinear(16);
    // create the transform parameter
    double m00 = 1; // scale x
    double m10 = -yShear; // shear y
    double m01 = -xShear; // shear x
    double m11 = 1; // scale y
View Full Code Here

            List<File> paths = tileSource.getNEDTiles();
            for (File path : paths) {
                GeotiffGridCoverageFactoryImpl factory = new GeotiffGridCoverageFactoryImpl();
                factory.setPath(path);
                GridCoverage2D regionCoverage = Interpolator2D.create(factory.getGridCoverage(),
                        new InterpolationBilinear());
                if (coverage == null) {
                    coverage = new UnifiedGridCoverage("unified", regionCoverage, datums);
                } else {
                    coverage.add(regionCoverage);
                }
View Full Code Here

        // If gridCov is a GridCoverage2D, apply a bilinear interpolator. Otherwise, just use the
        // coverage as is (note: UnifiedGridCoverages created by NEDGridCoverageFactoryImpl handle
        // interpolation internally)
        coverage = (gridCov instanceof GridCoverage2D) ? Interpolator2D.create(
                (GridCoverage2D) gridCov, new InterpolationBilinear()) : gridCov;
        log.info("setting street elevation profiles from NED data...");
        List<StreetEdge> edgesWithElevation = new ArrayList<StreetEdge>();
        int nProcessed = 0;
        int nTotal = graph.countEdges();
        for (Vertex gv : graph.getVertices()) {
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.