public class TailTrimFilter extends BaseRasterFilter
Modifier and Type | Field and Description |
---|---|
protected int |
count |
protected int |
incX |
protected int |
incY |
static String[] |
names |
protected int |
nSamples |
double |
percentSamples |
protected int |
posFin |
protected int |
posInit |
protected boolean |
removeMaxValue |
protected double[][] |
result
Array con el resultado.
|
protected int[][] |
sample |
protected double[][] |
sampleDec |
protected Statistics |
stats |
protected double |
tailPercent |
protected double[] |
tailPercentList |
protected int |
tailSize |
protected int[] |
tailSizeList |
colorInterpretation, environment, exec, extent, height, managername, nBandsToProcess, params, PERSISTENT_DESCRIPTION, PERSISTENT_NAME, raster, rasterResult, taskEventManager, transparency, util, width
RESULT_BUFFER, RESULT_TRANSPARENCY
Constructor and Description |
---|
TailTrimFilter() |
Modifier and Type | Method and Description |
---|---|
String |
getGroup()
Obtiene el grupo del filtro
|
int |
getInRasterDataType()
Obtiene el tipo de datos del raster de entrada
|
String[] |
getNames()
Gets the list of specific filter names.
|
int |
getOutRasterDataType()
Obtiene el tipo de datos del raster de salida
|
double |
getTailPercent()
Obtiene el porcentaje de recorte
|
double[] |
getTailPercentList()
Obtiene la lista de porcentajes de recorte
|
Params |
getUIParams(String nameFilter)
Obtener que datos puede tratar una interfaz con sus valores
|
boolean |
isVisible()
Devolverá un booleano indicando si es visible o no en el panel de filtros.
|
void |
post()
Ordena las muestras , recorta y asigna máximo y mínimo dependiendo del
porcentaje de recorte
|
void |
pre()
Calcula el incremento de X y de Y para la toma de muestras en el calculo de
valores para el recorte
|
void |
process(int x,
int y)
Ejecución del filtro para un pixel de la imagen
|
boolean |
removeMaxValue()
Devuelve true si se eliminan los extremos de la serie antes del calculo del recorte de colas
o false si no se eliminan.
|
addParam, clone, createARGBBufferResult, createBufferResult, dispose, execute, finalize, getColorInterpretation, getEnv, getInputBuffer, getManagerName, getName, getOutputBuffer, getParam, getParams, getPercent, getResult, hasInputTransparency, isExec, isToConvertToRGB, numberOfBandsToProcess, removeParam, resetPercent, setEnv, setExec, setExtent, setName, setParams, writeAlphaBand
public static String[] names
protected int count
protected int tailSize
protected int[] tailSizeList
protected int nSamples
protected boolean removeMaxValue
protected int incX
protected int incY
protected double tailPercent
protected double[] tailPercentList
public double percentSamples
protected int[][] sample
protected double[][] sampleDec
protected Statistics stats
protected double[][] result
protected int posInit
protected int posFin
public void pre() throws FilterAddException
pre
in interface RasterFilter
pre
in class BaseRasterFilter
FilterAddException
public void post()
post
in interface RasterFilter
post
in class BaseRasterFilter
public double getTailPercent()
public double[] getTailPercentList()
public boolean removeMaxValue()
public String getGroup()
RasterFilter
getGroup
in interface RasterFilter
getGroup
in class BaseRasterFilter
public Params getUIParams(String nameFilter)
RasterFilter
getUIParams
in interface RasterFilter
getUIParams
in class BaseRasterFilter
public int getInRasterDataType()
BaseRasterFilter
getInRasterDataType
in interface RasterFilter
getInRasterDataType
in class BaseRasterFilter
public int getOutRasterDataType()
BaseRasterFilter
getOutRasterDataType
in interface RasterFilter
getOutRasterDataType
in class BaseRasterFilter
public void process(int x, int y)
BaseRasterFilter
process
in interface RasterFilter
process
in class BaseRasterFilter
x
- posición Xy
- posición Ypublic String[] getNames()
RasterFilter
getNames
in interface RasterFilter
getNames
in class BaseRasterFilter
public boolean isVisible()
RasterFilter
isVisible
in interface RasterFilter
isVisible
in class BaseRasterFilter