public class SimpleProviderHistogramComputer extends java.lang.Object implements HistogramComputer
| Modifier and Type | Field and Description |
|---|---|
protected BufferHistogramImpl |
histogram
Histograma de la imagen completa
|
| Constructor and Description |
|---|
SimpleProviderHistogramComputer(RasterProvider provider)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
BufferHistogram |
getBufferHistogram()
Obtiene el histograma.
|
java.lang.String |
getLog()
Devuelve el contenido del log del IncrementableTask
|
double |
getMaximum()
Obtiene el maximo valor de las estadisticas de un histograma.
|
double |
getMinimum()
Obtiene el minimo valor de las estadisticas de un histograma.
|
int |
getPercent()
Obtiene el porcentaje de progreso del proceso de calculo de histograma
|
boolean |
isCancelable()
Determines if this process can be canceled.
|
boolean |
isPausable()
Determines if this process can be paused.
|
void |
refreshHistogram()
Force to recalculate the histogram next time that the method getBufferHistogram
be called
|
void |
resetPercent()
Pone a cero el porcentaje de progreso del proceso de calculo de histograma
|
protected void |
setBufferHistogram(BufferHistogram bh) |
void |
setPercent(int value)
Sets the increment of this task
|
void |
setScaleHistogram(double scale)
This value represents the percentage of the image that will be used
for this process.
|
static HistogramComputer |
union(RasterProvider prov,
java.util.List<RasterProvider> list)
Joins the this histogram object with the parameter and
returns a new Histogram object.
|
protected BufferHistogramImpl histogram
public SimpleProviderHistogramComputer(RasterProvider provider)
dataset - public void setScaleHistogram(double scale)
HistogramComputersetScaleHistogram in interface HistogramComputerpublic double getMinimum()
getMinimum in interface HistogramComputerpublic double getMaximum()
getMaximum in interface HistogramComputerpublic BufferHistogram getBufferHistogram() throws HistogramException, ProcessInterruptedException
getBufferHistogram in interface HistogramComputerHistogramExceptionProcessInterruptedExceptionpublic void resetPercent()
resetPercent in interface HistogramComputerpublic int getPercent()
getPercent in interface BaseIncrementableTaskpublic void refreshHistogram()
HistogramComputerrefreshHistogram in interface HistogramComputerprotected void setBufferHistogram(BufferHistogram bh)
public static HistogramComputer union(RasterProvider prov, java.util.List<RasterProvider> list) throws HistogramException, java.lang.InterruptedException
stats - java.lang.InterruptedExceptionHistogramExceptionpublic java.lang.String getLog()
IncrementableTaskgetLog in interface IncrementableTaskpublic boolean isCancelable()
IncrementableTaskDetermines if this process can be canceled.
isCancelable in interface IncrementableTasktrue if this process can be canceled, otherwise falsepublic boolean isPausable()
IncrementableTaskDetermines if this process can be paused.
isPausable in interface IncrementableTasktrue if this process can be paused, otherwise falsepublic void setPercent(int value)
BaseIncrementableTasksetPercent in interface BaseIncrementableTask