public class RGBToCMYKFilter extends BaseRasterFilter
Clase base para los filtros de conversión de RGB a CMYK. La entrada será siempre un raster de 3 bandas que serán tomadas como RGB.
| Modifier and Type | Field and Description |
|---|---|
protected int |
blueBandNumber |
protected DefaultColorConversion |
colorConversion |
protected int |
greenBandNumber |
static java.lang.String[] |
names |
protected int |
out |
protected int |
redBandNumber |
colorInterpretation, environment, exec, extent, height, managername, nBandsToProcess, params, PERSISTENT_DESCRIPTION, PERSISTENT_NAME, raster, rasterResult, taskEventManager, transparency, util, widthRESULT_BUFFER, RESULT_TRANSPARENCY| Constructor and Description |
|---|
RGBToCMYKFilter()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getGroup()
Obtiene el grupo del filtro
|
int |
getInRasterDataType()
Obtiene el tipo de datos del raster de entrada
|
java.lang.String[] |
getNames()
Gets the list of specific filter names.
|
int |
getOutRasterDataType()
Obtiene el tipo de datos del raster de salida
|
Params |
getUIParams(java.lang.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()
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
|
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, writeAlphaBandpublic static java.lang.String[] names
protected DefaultColorConversion colorConversion
protected int out
protected int redBandNumber
protected int greenBandNumber
protected int blueBandNumber
public void pre()
throws FilterAddException
BaseRasterFilterpre in interface RasterFilterpre in class BaseRasterFilterFilterAddExceptionpublic java.lang.String getGroup()
RasterFiltergetGroup in interface RasterFiltergetGroup in class BaseRasterFilterpublic java.lang.String[] getNames()
RasterFiltergetNames in interface RasterFiltergetNames in class BaseRasterFilterpublic Params getUIParams(java.lang.String nameFilter)
RasterFiltergetUIParams in interface RasterFiltergetUIParams in class BaseRasterFilterpublic void post()
BaseRasterFilterpost in interface RasterFilterpost in class BaseRasterFilterpublic void process(int x,
int y)
BaseRasterFilterprocess in interface RasterFilterprocess in class BaseRasterFilterx - posición Xy - posición Ypublic int getOutRasterDataType()
BaseRasterFiltergetOutRasterDataType in interface RasterFiltergetOutRasterDataType in class BaseRasterFilterpublic boolean isVisible()
RasterFilterisVisible in interface RasterFilterisVisible in class BaseRasterFilterpublic int getInRasterDataType()
BaseRasterFiltergetInRasterDataType in interface RasterFiltergetInRasterDataType in class BaseRasterFilter