it.geosolutions.jaiext.zonal
Class ZoneGeometry

java.lang.Object
  extended by it.geosolutions.jaiext.zonal.ZoneGeometry

public class ZoneGeometry
extends Object

This class is used for storing the statistics associated to a specific geometry. All the statistics are organized inside Map objects. The "statsContainer" object contains a number of items, each one for every band. Every item object contains the statistics array for every Class, if the classifier is present, or only for the Class 0 if not. The statistics object are created at the initialization time if the classifier is not present, otherwise they are created when a new Class is founded.


Method Summary
 void add(double sample, int band, int classId, Range dataRange)
           
 void clear()
          Simple method for clearing all the image statistics
 Set<Integer> getClasses()
          Utility method indicating the index of all the classes
 int getNumClass()
          Utility method indicating the number of classes
 List<Range> getRanges()
           
 javax.media.jai.ROI getROI()
          Utility method for finding the zone associated geometry.
 Map<Integer,Map<Range,Statistics[]>> getStatsPerBand(int band)
          Utility method for having all the zone-class statistics for a selected band.
 Statistics[] getStatsPerBandNoClassifier(int band, Range range)
          Utility method for having the Statistics of a specific band if no classifier is used
 Statistics[] getStatsPerBandNoClassifierNoRange(int band)
          Utility method for having the Statistics of a specific band if no classifier and no Range are used
 Statistics[] getStatsPerBandNoRange(int band, int classId)
          Utility method for having the Statistics of a specific band if classifier is used but no range is present
 Map<Range,Statistics[]> getStatsPerBandPerClass(int band, int classId)
          Utility method for having all the zone-class statistics for a selected band.
 Statistics[] getStatsPerBandPerClassPerRange(int band, int classId, Range range)
          Utility method for having the Statistics of a specific band inside a specific zone class and a specific Range
 Map<Integer,Map<Integer,Map<Range,Statistics[]>>> getTotalStats()
          Utility method for having all ZoneGeometry statistics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public void add(double sample,
                int band,
                int classId,
                Range dataRange)

getStatsPerBandPerClassPerRange

public Statistics[] getStatsPerBandPerClassPerRange(int band,
                                                    int classId,
                                                    Range range)
Utility method for having the Statistics of a specific band inside a specific zone class and a specific Range


getStatsPerBandNoClassifier

public Statistics[] getStatsPerBandNoClassifier(int band,
                                                Range range)
Utility method for having the Statistics of a specific band if no classifier is used


getStatsPerBandNoClassifierNoRange

public Statistics[] getStatsPerBandNoClassifierNoRange(int band)
Utility method for having the Statistics of a specific band if no classifier and no Range are used


getStatsPerBandNoRange

public Statistics[] getStatsPerBandNoRange(int band,
                                           int classId)
Utility method for having the Statistics of a specific band if classifier is used but no range is present


getStatsPerBand

public Map<Integer,Map<Range,Statistics[]>> getStatsPerBand(int band)
Utility method for having all the zone-class statistics for a selected band.


getStatsPerBandPerClass

public Map<Range,Statistics[]> getStatsPerBandPerClass(int band,
                                                       int classId)
Utility method for having all the zone-class statistics for a selected band.


getNumClass

public int getNumClass()
Utility method indicating the number of classes


getRanges

public List<Range> getRanges()

getClasses

public Set<Integer> getClasses()
Utility method indicating the index of all the classes


getTotalStats

public Map<Integer,Map<Integer,Map<Range,Statistics[]>>> getTotalStats()
Utility method for having all ZoneGeometry statistics.


getROI

public javax.media.jai.ROI getROI()
Utility method for finding the zone associated geometry.


clear

public void clear()
Simple method for clearing all the image statistics



Copyright © 2006–2014 GeoSolutions. All rights reserved.