com.mizar.metadata.gdal
Class GdalHistogram

java.lang.Object
  extended by com.mizar.metadata.gdal.GdalHistogram

public class GdalHistogram
extends java.lang.Object


Constructor Summary
GdalHistogram(org.gdal.gdal.Dataset dataset)
           
 
Method Summary
 int[] getHistogram(org.gdal.gdal.Band band)
           
 int[] getHistogram(int bandNumber)
           
 int[] getScaledHistogram(org.gdal.gdal.Band band)
           
 int[] getScaledHistogram(int max, org.gdal.gdal.Band band)
           
 int[] getScaledHistogram(int min, int max, org.gdal.gdal.Band band)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GdalHistogram

public GdalHistogram(org.gdal.gdal.Dataset dataset)
Parameters:
dataset -
Method Detail

getHistogram

public int[] getHistogram(int bandNumber)
                   throws GdalException
Parameters:
bandNumber - base 0
Returns:
a histogram with the number of instances of each value
Throws:
GdalException

getHistogram

public int[] getHistogram(org.gdal.gdal.Band band)
                   throws GdalException
Parameters:
band -
Returns:
Throws:
GdalException

getScaledHistogram

public int[] getScaledHistogram(int min,
                                int max,
                                org.gdal.gdal.Band band)
                         throws GdalException
Throws:
GdalException

getScaledHistogram

public int[] getScaledHistogram(int max,
                                org.gdal.gdal.Band band)
                         throws GdalException
Throws:
GdalException

getScaledHistogram

public int[] getScaledHistogram(org.gdal.gdal.Band band)
                         throws GdalException
Throws:
GdalException