public interface ColorInterpretation extends Persistent
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALPHA_BAND |
static java.lang.String |
ARGB |
static java.lang.String |
BGR |
static java.lang.String |
BLUE_BAND |
static java.lang.String |
GRAY_BAND |
static java.lang.String |
GRAYSCALE |
static java.lang.String |
GREEN_BAND |
static java.lang.String |
GREEN_BLUE_BAND |
static java.lang.String |
PAL_BAND |
static java.lang.String |
PALETTE |
static java.lang.String |
RED_BAND |
static java.lang.String |
RED_BLUE_BAND |
static java.lang.String |
RED_GREEN_BAND |
static java.lang.String |
RGB |
static java.lang.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
|
java.lang.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(java.lang.String id)
Obtiene la posición de la banda que contiene el identificador pasado por parámetro
o -1 si no tiene dicho identificador.
|
java.lang.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,
java.lang.String value)
Asigna un valor para la interpretación de color de una banda
|
loadFromState, saveToStatestatic final java.lang.String RED_BAND
static final java.lang.String GREEN_BAND
static final java.lang.String BLUE_BAND
static final java.lang.String ALPHA_BAND
static final java.lang.String GRAY_BAND
static final java.lang.String PAL_BAND
static final java.lang.String UNDEF_BAND
static final java.lang.String RED_GREEN_BAND
static final java.lang.String RED_BLUE_BAND
static final java.lang.String GREEN_BLUE_BAND
static final java.lang.String RGB
static final java.lang.String BGR
static final java.lang.String ARGB
static final java.lang.String GRAYSCALE
static final java.lang.String PALETTE
void setColorInterpValue(int band,
java.lang.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 - java.lang.String get(int i)
i - Número de entradaint getBand(java.lang.String id)
boolean isUndefined()
void initColorInterpretation(int values)
values - Número de valoresjava.lang.String[] getValues()
boolean hasAlphaBand()
int getAlphaBand()
void addColorInterpretation(ColorInterpretation ci)
ci - int[] buildRenderBands()
ColorInterpretation cloneColorInterpretation()