public class ROIStatistic extends java.lang.Object implements Statistics
Constructor and Description |
---|
ROIStatistic(AbstractROI roi) |
Modifier and Type | Method and Description |
---|---|
void |
calculate(double scale)
Calcula las estadísticas básicas (Max, Min, Media, Varianza).
|
void |
calculateAdvanced()
Calculo de estadisticas avanzadas (Matriz varianza- covarianza).
|
Statistics |
cloneStatistics()
Clones this object
|
void |
forceToRecalc()
Cuando se llama a este método fuerza que la siguiente petición de estadísticas
no sea leída de RMF y sean recalculadas por completo.
|
int |
getBandCount()
Gets the number of bands
|
double[] |
getMax()
Devuelve una lista con los máximos de todas las bandas
|
double[] |
getMaxByteUnsigned()
Obtiene el máximo cuando el raster es de typo byte RGB
|
double |
getMaximun()
Devuelve el máximo valor de todos los máximos de las bandas
|
double |
getMaximunByteUnsigned()
Devuelve el máximo valor RGB de todos los máximos de las bandas
|
double[] |
getMean()
Obtiene el valor médio
|
double[] |
getMin()
Devuelve una lista con los mínimos de todas las bandas
|
double[] |
getMinByteUnsigned()
Obtiene el mínimo cuando el raster es de typo byte RGB
|
double |
getMinimun()
Devuelve el mínimo valor de todos los mínimos de las bandas
|
double |
getMinimunByteUnsigned()
Devuelve el mínimo valor RGB de todos los mínimos de las bandas
|
long[] |
getNumberOfCells()
Gets the number of pixels by band
|
long[] |
getNumberOfValues()
Gets the number of values by band
|
int |
getPercent()
Obtiene el porcentaje de progreso del proceso de calculo de histograma
|
double[] |
getSecondMax()
Obtiene el valor del segundo máximo
|
double[] |
getSecondMaxByteUnsigned()
Obtiene el segundo máximo cuando el raster es de typo byte RGB
|
double[] |
getSecondMin()
Obtiene el valor del segundo mínimo
|
double[] |
getSecondMinByteUnsigned()
Obtiene el segundo mínimo cuando el raster es de typo byte RGB
|
int |
getTailTrimCount()
Devuelve el número de valores de recorte de colas calculados.
|
java.lang.Object |
getTailTrimValue(double percent)
Obtiene un valor de recorte de colas para un porcentaje dado.
|
java.lang.Object[] |
getTailTrimValue(int pos)
Obtiene un valor de recorte de colas para una posición dada.
|
double[] |
getVariance()
Obtiene la varianza
|
double[][] |
getVarianceCovarianceMatrix()
Devuelve la matriz de varianza-covarianza, si no se encuentra calculada se calcula
|
boolean |
isAdvancedStatisticsCalculated()
Returns true if the advanced statistics are calculated and false if not
|
boolean |
isCalculated()
Obtiene el flag que informa de si las estadísticas están calculadas o no.
|
void |
resetPercent()
Pone a cero el porcentaje de progreso del proceso de calculo de histograma
|
void |
setAdvancedStatisticCalculated(boolean advancedStatisticCalculated) |
void |
setBandCount(int bandCount)
Sets the number of bands
|
void |
setCalculated(boolean calc)
Asigna el flag de estadísticas calculadas.
|
void |
setNumberOfValues(long[] values)
Sets the number of values by band
|
void |
setTailTrimValue(double percent,
java.lang.Object valueByBand)
Asigna un valor de recorte de colas para un porcentaje dado.
|
public ROIStatistic(AbstractROI roi)
public void calculate(double scale) throws RasterDriverException
calculate
in interface Statistics
RasterBufferInvalidAccessException
RasterDriverException
public void calculateAdvanced() throws GridException
calculateAdvanced
in interface Statistics
GridException
public double getMaximun()
Statistics
getMaximun
in interface Statistics
public double[] getMean()
Statistics
getMean
in interface Statistics
public double getMinimun()
Statistics
getMinimun
in interface Statistics
public double[] getMin()
Statistics
getMin
in interface Statistics
public double[] getMax()
Statistics
getMax
in interface Statistics
public boolean isCalculated()
Statistics
isCalculated
in interface Statistics
public void setCalculated(boolean calc)
Statistics
setCalculated
in interface Statistics
public double[] getVariance()
getVariance
in interface Statistics
public double[][] getVarianceCovarianceMatrix()
getVarianceCovarianceMatrix
in interface Statistics
public boolean isAdvancedStatisticsCalculated()
Statistics
isAdvancedStatisticsCalculated
in interface Statistics
public void setAdvancedStatisticCalculated(boolean advancedStatisticCalculated)
public long[] getNumberOfCells()
Statistics
getNumberOfCells
in interface Statistics
public void forceToRecalc()
Statistics
forceToRecalc
in interface Statistics
public int getBandCount()
Statistics
getBandCount
in interface Statistics
public void setBandCount(int bandCount)
Statistics
setBandCount
in interface Statistics
public double[] getMaxByteUnsigned()
Statistics
getMaxByteUnsigned
in interface Statistics
public double getMaximunByteUnsigned()
Statistics
getMaximunByteUnsigned
in interface Statistics
public double[] getMinByteUnsigned()
Statistics
getMinByteUnsigned
in interface Statistics
public double getMinimunByteUnsigned()
Statistics
getMinimunByteUnsigned
in interface Statistics
public int getPercent()
Statistics
getPercent
in interface Statistics
public double[] getSecondMax()
Statistics
getSecondMax
in interface Statistics
public double[] getSecondMaxByteUnsigned()
Statistics
getSecondMaxByteUnsigned
in interface Statistics
public double[] getSecondMin()
Statistics
getSecondMin
in interface Statistics
public double[] getSecondMinByteUnsigned()
Statistics
getSecondMinByteUnsigned
in interface Statistics
public int getTailTrimCount()
Statistics
getTailTrimCount
in interface Statistics
public java.lang.Object getTailTrimValue(double percent)
Statistics
getTailTrimValue
in interface Statistics
percent
- Porcentaje de recortepublic void setTailTrimValue(double percent, java.lang.Object valueByBand)
Statistics
setTailTrimValue
in interface Statistics
percent
- Porcentaje de recortevalueByBand
- array bidimensional de enteros o doubles. Depende del tipo de dato del raster.public java.lang.Object[] getTailTrimValue(int pos)
Statistics
getTailTrimValue
in interface Statistics
public void resetPercent()
Statistics
resetPercent
in interface Statistics
public Statistics cloneStatistics()
Statistics
cloneStatistics
in interface Statistics
public long[] getNumberOfValues()
Statistics
getNumberOfValues
in interface Statistics
public void setNumberOfValues(long[] values)
Statistics
setNumberOfValues
in interface Statistics