public interface ColorInterpretation extends Persistent
Modifier and Type | Field and Description |
---|---|
static String |
ALPHA_BAND |
static String |
ARGB |
static String |
BGR |
static String |
BLUE_BAND |
static String |
GRAY_BAND |
static String |
GRAYSCALE |
static String |
GREEN_BAND |
static String |
GREEN_BLUE_BAND |
static String |
PAL_BAND |
static String |
PALETTE |
static String |
RED_BAND |
static String |
RED_BLUE_BAND |
static String |
RED_GREEN_BAND |
static String |
RGB |
static String |
UNDEF_BAND |
Modifier and Type | Method and Description |
---|---|
void |
addColorInterpretation(ColorInterpretation ci)
Añade un objeto DatasetColorInterpretation al actual.
|
int[] |
buildRenderBands()
Returns an array with bands to render reading values of this color
interpretation object.
|
ColorInterpretation |
cloneColorInterpretation()
Clones this object
|
String |
get(int i)
Obtiene el valor de interpretación de color de la entrada i.
|
int |
getAlphaBand()
Returns the number of band with the label "Alpha"
|
int |
getBand(String id)
Obtiene la posición de la banda que contiene el identificador pasado por parámetro
o -1 si no tiene dicho identificador.
|
String[] |
getValues()
Obtiene los valores de la interpretación de color
|
boolean |
hasAlphaBand()
Returns true if one band has the "Alpha" label
|
boolean |
hasInterpretation()
Returns true if the values Red, Green and Blue are
assigned to any band of the image or the values Gray or Palette are
assigned.
|
void |
initColorInterpretation(int values)
Inicializa el vector de cadenas que contendrán el nombre de la interpretación
de color asignada a cada banda.
|
boolean |
isAlphaInterpretation(int band)
Returns true if the selected band has alpha interpretation and false otherwise
|
boolean |
isBGR()
Returns true if the color interpretation is BGR, that is, the
three first bands of the image are Blue, Green and Red.
|
boolean |
isColorInterpretation(int band)
Returns true if the selected band has red, green or blue interpretation and false otherwise
|
boolean |
isGrayInterpretation(int band)
Returns true if the selected band has gray interpretation and false otherwise
|
boolean |
isPalette()
Returns true if the color interpretation is Palette
|
boolean |
isRGB()
Returns true if the color interpretation is RGB, that is, the
three first bands of the image are Red, Green and Blue.
|
boolean |
isRGBA()
Returns true if the color interpretation is ARGB, that is, the
four first bands of the image are Red, Green, Blue and Alpha.
|
boolean |
isUndefined()
Consulta si la interpretación de color está por definir en la imagen.
|
int |
length()
Obtiene el número de entradas de interpretación de color por
banda en la lista.
|
void |
setColorInterpValue(int band,
String value)
Asigna un valor para la interpretación de color de una banda
|
loadFromState, saveToState
static final String RED_BAND
static final String GREEN_BAND
static final String BLUE_BAND
static final String ALPHA_BAND
static final String GRAY_BAND
static final String PAL_BAND
static final String UNDEF_BAND
static final String RED_GREEN_BAND
static final String RED_BLUE_BAND
static final String GREEN_BLUE_BAND
static final String RGB
static final String BGR
static final String ARGB
static final String GRAYSCALE
static final String PALETTE
void setColorInterpValue(int band, String value)
band
- Bandavalue
- valorint length()
boolean hasInterpretation()
boolean isBGR()
boolean isRGB()
boolean isRGBA()
boolean isPalette()
boolean isColorInterpretation(int band)
band
- boolean isGrayInterpretation(int band)
band
- boolean isAlphaInterpretation(int band)
band
- String get(int i)
i
- Número de entradaint getBand(String id)
boolean isUndefined()
void initColorInterpretation(int values)
values
- Número de valoresString[] getValues()
boolean hasAlphaBand()
int getAlphaBand()
void addColorInterpretation(ColorInterpretation ci)
ci
- int[] buildRenderBands()
ColorInterpretation cloneColorInterpretation()