public class DataStoreColorInterpretation extends java.lang.Object implements ColorInterpretation
ALPHA_BAND, ARGB, BGR, BLUE_BAND, GRAY_BAND, GRAYSCALE, GREEN_BAND, GREEN_BLUE_BAND, PAL_BAND, PALETTE, RED_BAND, RED_BLUE_BAND, RED_GREEN_BAND, RGB, UNDEF_BAND| Constructor and Description |
|---|
DataStoreColorInterpretation()
Constructor vacio.
|
DataStoreColorInterpretation(int bandCount)
Constructor que inicializa el número de valores de la interpretación de
color.
|
DataStoreColorInterpretation(java.lang.String colorInterpretationConstant) |
DataStoreColorInterpretation(java.lang.String[] colorInterp)
Constructor que asigna los valores de interpretación de color
|
| 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
|
static DataStoreColorInterpretation |
createDefaultInterpretation(int nBands) |
static DataStoreColorInterpretation |
createGrayInterpretation()
Obtiene una interpretación de color GRAY
|
static DataStoreColorInterpretation |
createPaletteInterpretation() |
static DataStoreColorInterpretation |
createRGBAInterpretation()
Obtiene una interpretación de color ARGB
|
static DataStoreColorInterpretation |
createRGBInterpretation()
Obtiene una interpretación de color RGB
|
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.
|
int[] |
getBands(java.lang.String id)
Obtiene la posición de las bandas que contienen el identificador pasado por parámetro
o null 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 |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static DynStruct |
registerDynClass() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setColorInterpValue(int band,
java.lang.String value)
Asigna un valor para la interpretación de color de una banda
|
void |
setValues(java.lang.String[] colorInterp)
Asigna los valores de la interpretación de color
|
public DataStoreColorInterpretation()
public DataStoreColorInterpretation(java.lang.String[] colorInterp)
public DataStoreColorInterpretation(int bandCount)
public DataStoreColorInterpretation(java.lang.String colorInterpretationConstant)
public static DataStoreColorInterpretation createDefaultInterpretation(int nBands)
public static DataStoreColorInterpretation createPaletteInterpretation()
public static DataStoreColorInterpretation createGrayInterpretation()
public static DataStoreColorInterpretation createRGBAInterpretation()
public static DataStoreColorInterpretation createRGBInterpretation()
public void initColorInterpretation(int values)
initColorInterpretation in interface ColorInterpretationvalues - Número de valorespublic boolean hasInterpretation()
ColorInterpretationhasInterpretation in interface ColorInterpretationpublic boolean isBGR()
ColorInterpretationisBGR in interface ColorInterpretationpublic boolean isRGB()
ColorInterpretationisRGB in interface ColorInterpretationpublic boolean isRGBA()
ColorInterpretationisRGBA in interface ColorInterpretationpublic boolean isPalette()
ColorInterpretationisPalette in interface ColorInterpretationpublic boolean isGrayInterpretation(int band)
ColorInterpretationisGrayInterpretation in interface ColorInterpretationpublic boolean isColorInterpretation(int band)
ColorInterpretationisColorInterpretation in interface ColorInterpretationpublic boolean isAlphaInterpretation(int band)
ColorInterpretationisAlphaInterpretation in interface ColorInterpretationpublic int getAlphaBand()
ColorInterpretationgetAlphaBand in interface ColorInterpretationpublic java.lang.String[] getValues()
ColorInterpretationgetValues in interface ColorInterpretationpublic void setValues(java.lang.String[] colorInterp)
public void setColorInterpValue(int band,
java.lang.String value)
ColorInterpretationsetColorInterpValue in interface ColorInterpretationband - Bandavalue - valorpublic int getBand(java.lang.String id)
ColorInterpretationgetBand in interface ColorInterpretationpublic int[] getBands(java.lang.String id)
public boolean hasAlphaBand()
ColorInterpretationhasAlphaBand in interface ColorInterpretationpublic int length()
ColorInterpretationlength in interface ColorInterpretationpublic java.lang.String get(int i)
ColorInterpretationget in interface ColorInterpretationi - Número de entradapublic void addColorInterpretation(ColorInterpretation ci)
ColorInterpretationaddColorInterpretation in interface ColorInterpretationpublic boolean isUndefined()
ColorInterpretationisUndefined in interface ColorInterpretationpublic int[] buildRenderBands()
ColorInterpretationbuildRenderBands in interface ColorInterpretationpublic ColorInterpretation cloneColorInterpretation()
ColorInterpretationcloneColorInterpretation in interface ColorInterpretationpublic static DynStruct registerDynClass()
public void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceException