public class ROIStatistic extends 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.
|
Object |
getTailTrimValue(double percent)
Obtiene un valor de recorte de colas para un porcentaje dado.
|
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,
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 StatisticsRasterBufferInvalidAccessExceptionRasterDriverExceptionpublic void calculateAdvanced()
throws GridException
calculateAdvanced in interface StatisticsGridExceptionpublic double getMaximun()
StatisticsgetMaximun in interface Statisticspublic double[] getMean()
StatisticsgetMean in interface Statisticspublic double getMinimun()
StatisticsgetMinimun in interface Statisticspublic double[] getMin()
StatisticsgetMin in interface Statisticspublic double[] getMax()
StatisticsgetMax in interface Statisticspublic boolean isCalculated()
StatisticsisCalculated in interface Statisticspublic void setCalculated(boolean calc)
StatisticssetCalculated in interface Statisticspublic double[] getVariance()
getVariance in interface Statisticspublic double[][] getVarianceCovarianceMatrix()
getVarianceCovarianceMatrix in interface Statisticspublic boolean isAdvancedStatisticsCalculated()
StatisticsisAdvancedStatisticsCalculated in interface Statisticspublic void setAdvancedStatisticCalculated(boolean advancedStatisticCalculated)
public long[] getNumberOfCells()
StatisticsgetNumberOfCells in interface Statisticspublic void forceToRecalc()
StatisticsforceToRecalc in interface Statisticspublic int getBandCount()
StatisticsgetBandCount in interface Statisticspublic void setBandCount(int bandCount)
StatisticssetBandCount in interface Statisticspublic double[] getMaxByteUnsigned()
StatisticsgetMaxByteUnsigned in interface Statisticspublic double getMaximunByteUnsigned()
StatisticsgetMaximunByteUnsigned in interface Statisticspublic double[] getMinByteUnsigned()
StatisticsgetMinByteUnsigned in interface Statisticspublic double getMinimunByteUnsigned()
StatisticsgetMinimunByteUnsigned in interface Statisticspublic int getPercent()
StatisticsgetPercent in interface Statisticspublic double[] getSecondMax()
StatisticsgetSecondMax in interface Statisticspublic double[] getSecondMaxByteUnsigned()
StatisticsgetSecondMaxByteUnsigned in interface Statisticspublic double[] getSecondMin()
StatisticsgetSecondMin in interface Statisticspublic double[] getSecondMinByteUnsigned()
StatisticsgetSecondMinByteUnsigned in interface Statisticspublic int getTailTrimCount()
StatisticsgetTailTrimCount in interface Statisticspublic Object getTailTrimValue(double percent)
StatisticsgetTailTrimValue in interface Statisticspercent - Porcentaje de recortepublic void setTailTrimValue(double percent,
Object valueByBand)
StatisticssetTailTrimValue in interface Statisticspercent - Porcentaje de recortevalueByBand - array bidimensional de enteros o doubles. Depende del tipo de dato del raster.public Object[] getTailTrimValue(int pos)
StatisticsgetTailTrimValue in interface Statisticspublic void resetPercent()
StatisticsresetPercent in interface Statisticspublic Statistics cloneStatistics()
StatisticscloneStatistics in interface Statisticspublic long[] getNumberOfValues()
StatisticsgetNumberOfValues in interface Statisticspublic void setNumberOfValues(long[] values)
StatisticssetNumberOfValues in interface Statistics