public class ColorTableFilter extends BaseRasterFilter
Clase base para los filtros de tabla de color. Siempre gastará la banda cero del raster para aplicar el filtro ya que la aplicación de tablas suele tener sentido solo en raster de una sola banda.
La salida siempre es un ARGB.
Modifier and Type | Field and Description |
---|---|
protected DataStoreColorTable |
colorTable |
protected boolean |
hasAlpha |
static String[] |
names |
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 |
---|
ColorTableFilter()
Constructor
|
Modifier and Type | Method and Description |
---|---|
ColorTable |
getColorTable()
Obtiene la tabla de color que se usará para la aplicación del filtro
|
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
|
Params |
getUIParams(String nameFilter)
Obtener que datos puede tratar una interfaz con sus valores
|
boolean |
isToConvertToRGB()
Returns true if this filter is to conver the input buffer to RGB.
|
boolean |
isVisible()
Devolverá un booleano indicando si es visible o no en el panel de filtros.
|
void |
post()
Función que contiene el código a ejecutar despues de aplicar el filtro
|
void |
pre()
Code to execute before apply a filter
|
void |
process(int x,
int y)
Ejecución del filtro para un pixel de la imagen
|
void |
setColorTable(ColorTable colorTable)
Define la tabla de color
|
addParam, clone, createARGBBufferResult, createBufferResult, dispose, execute, finalize, getColorInterpretation, getEnv, getInputBuffer, getManagerName, getName, getOutputBuffer, getParam, getParams, getPercent, getResult, hasInputTransparency, isExec, numberOfBandsToProcess, removeParam, resetPercent, setEnv, setExec, setExtent, setName, setParams, writeAlphaBand
public static String[] names
protected DataStoreColorTable colorTable
protected boolean hasAlpha
public void pre() throws FilterAddException
BaseRasterFilter
pre
in interface RasterFilter
pre
in class BaseRasterFilter
FilterAddException
public String getGroup()
RasterFilter
getGroup
in interface RasterFilter
getGroup
in class BaseRasterFilter
public String[] getNames()
RasterFilter
getNames
in interface RasterFilter
getNames
in class BaseRasterFilter
public Params getUIParams(String nameFilter)
RasterFilter
getUIParams
in interface RasterFilter
getUIParams
in class BaseRasterFilter
public void post()
BaseRasterFilter
post
in interface RasterFilter
post
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 int getOutRasterDataType()
BaseRasterFilter
getOutRasterDataType
in interface RasterFilter
getOutRasterDataType
in class BaseRasterFilter
public boolean isVisible()
RasterFilter
isVisible
in interface RasterFilter
isVisible
in class BaseRasterFilter
public boolean isToConvertToRGB()
RasterFilter
isToConvertToRGB
in interface RasterFilter
isToConvertToRGB
in class BaseRasterFilter
public ColorTable getColorTable()
public int getInRasterDataType()
BaseRasterFilter
getInRasterDataType
in interface RasterFilter
getInRasterDataType
in class BaseRasterFilter
public void setColorTable(ColorTable colorTable)
colorTable
- the colorTable to set