Examples of affine()


Examples of org.geotools.image.ImageWorker.affine()

        // ImageWorker
        //
        ////
        final ImageWorker worker= new ImageWorker(source);
        worker.setRenderingHints(hints);
        worker.affine(
                (AffineTransform)parameters.getObjectParameter("transform") ,
                interpolation,
                (double[])parameters.getObjectParameter("backgroundValues"));
        return worker.getRenderedImage();
    }
View Full Code Here

Examples of org.geotools.image.ImageWorker.affine()

                }
            }

            ImageWorker iw = new ImageWorker(image);
            iw.setRenderingHints(localHints);
            iw.affine(targetWorldToGrid, request.getInterpolation(), DEFAULT_BACKGROUND_VALUES);
            image = iw.getRenderedImage();
        }
        return image;
    }
View Full Code Here

Examples of org.geotools.image.ImageWorker.affine()

                localHints.add(ImageUtilities.BORDER_EXTENDER_HINTS);
            }

            ImageWorker iw = new ImageWorker(raster);
            iw.setRenderingHints(localHints);
            iw.affine(finalRaster2Model, interpolation, DEFAULT_BACKGROUND_VALUES);
            return iw.getRenderedImage();

        } catch (IllegalStateException e) {
            if (LOGGER.isLoggable(java.util.logging.Level.WARNING)) {
                LOGGER.log(java.util.logging.Level.WARNING,
View Full Code Here

Examples of org.geotools.image.ImageWorker.affine()

        RenderedImage im=null;
        try {
            ImageWorker iw = new ImageWorker(finalImage);
            iw.setRenderingHints(hints);
            iw.affine(finalRasterTransformation, interpolation, bkgValues);
            im = iw.getRenderedImage();
        } finally {
                if(DEBUG){
                    writeRenderedImage(im, "postAffine");
                }
View Full Code Here

Examples of org.geotools.image.ImageWorker.affine()

                    localHints.add(ImageUtilities.BORDER_EXTENDER_HINTS);
                }
               
                ImageWorker iw = new ImageWorker(raster);
                iw.setRenderingHints(localHints);
                iw.affine(finalRaster2Model, interpolation, request.getBackgroundValues());
        return new GranuleLoadingResult(iw.getRenderedImage(), null, granuleUrl, doFiltering, pamDataset);
      }
   
    } catch (IllegalStateException e) {
      if (LOGGER.isLoggable(java.util.logging.Level.WARNING)) {
View Full Code Here

Examples of org.geotools.image.ImageWorker.affine()

                            }
                        }
                       
                        ImageWorker iw = new ImageWorker(mosaickedImage.image);
                        iw.setRenderingHints(localHints);
                        iw.affine(targetWorldToGrid, interpolation, backgroundValues);
                        mosaickedImage.image = iw.getRenderedImage();
                    } catch (NoninvertibleTransformException e) {
                        if (LOGGER.isLoggable(Level.SEVERE)){
                            LOGGER.log(Level.SEVERE, "Unable to create the requested mosaic ", e );
                        }
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.