it.geosolutions.unredd.stats.impl
Class RasterClassifiedStatistics

java.lang.Object
  extended by it.geosolutions.unredd.stats.impl.RasterClassifiedStatistics

public class RasterClassifiedStatistics
extends Object

A process computing classified statistics based on a raster data set and a set of raster classification layers

Author:
Emanuele Tajariol (etj at geo-solutions dot it)

Constructor Summary
RasterClassifiedStatistics()
           
 
Method Summary
 Map<org.apache.commons.collections.keyvalue.MultiKey,List<org.jaitools.media.jai.classifiedstats.Result>> execute(boolean deferredMode, DataFile dataFile, List<DataFile> classificationFiles, List<org.jaitools.numeric.Statistic> requestedStats)
           
static RenderedImage loadImage(boolean deferred, File tiffFile)
          Loads a RenderedImage from the specified file with the specified mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RasterClassifiedStatistics

public RasterClassifiedStatistics()
Method Detail

execute

public Map<org.apache.commons.collections.keyvalue.MultiKey,List<org.jaitools.media.jai.classifiedstats.Result>> execute(boolean deferredMode,
                                                                                                                         DataFile dataFile,
                                                                                                                         List<DataFile> classificationFiles,
                                                                                                                         List<org.jaitools.numeric.Statistic> requestedStats)
                                                                                                                  throws IOException
Throws:
IOException

loadImage

public static RenderedImage loadImage(boolean deferred,
                                      File tiffFile)
                               throws IOException
Loads a RenderedImage from the specified file with the specified mode.

Parameters:
mode, - ComputationMode can be ComputationMode#DEFERRED or ComputationMode#IMMEDIATE as per the JAI meaning.
tiffFile - the input File where to read from.
Returns:
Throws:
IOException - in case the creation of the ImageInputStream or the Immediate read with Imageio fails.


Copyright © 2012. All Rights Reserved.