Examples of retainBands()


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

    // With index color model we want just the first band
    //
    // /////////////////////////////////////////////////////////////////////
    if (image.getColorModel() instanceof IndexColorModel
        && (image.getSampleModel().getNumBands() > 1)) {
      worker.retainBands(1);
      image = worker.getRenderedImage();
    }

    /**
     * For the moment we do not work with DirectColorModel but instead we
View Full Code Here

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

                //
                // I have to select the alpha band and provide it to the final
                // mosaic operator. I have to force going to ComponentColorModel in
                // case the image is indexed.
                //
                alphaChannel = w.retainBands(alphaIndex).getPlanarImage();
            }
       
       
            //
            // ROI
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.