public interface Band extends StatsValues
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_BYTE |
static int |
TYPE_DOUBLE |
static int |
TYPE_FLOAT |
static int |
TYPE_IMAGE |
static int |
TYPE_INT |
static int |
TYPE_SHORT |
static int |
TYPE_UNDEFINED |
static int |
TYPE_USHORT |
Modifier and Type | Method and Description |
---|---|
void |
assign(byte value)
Sets all elements in this band to the parameter value
|
void |
assign(double value)
Sets all elements in this band to the parameter value
|
void |
assign(float value)
Sets all elements in this band to the parameter value
|
void |
assign(int value)
Sets all elements in this band to the parameter value
|
void |
assign(short value)
Sets all elements in this band to the parameter value
|
int |
getBandNumber()
Gets the band number
|
int |
getBlockSize()
Gets the height of each minimum data block.
|
byte[][] |
getByteBlock(int block)
Gets a minimum block of data.
|
byte[] |
getByteLine(int line)
Obtiene una línea de datos de esta banda para buffers con tipo
de dato byte.
|
int |
getDataType()
Obtiene el tipo de dato.
|
double[][] |
getDoubleBlock(int block)
Gets a minimum block of data.
|
double[] |
getDoubleLine(int line)
Obtiene una línea de datos de esta banda para buffers con tipo
de dato double.
|
byte |
getElemByte(int line,
int col)
Gets one element from the array if this is byte datatype
|
double |
getElemDouble(int line,
int col)
Gets one element from the array if this is double datatype
|
float |
getElemFloat(int line,
int col)
Gets one element from the array if this is float datatype
|
int |
getElemInt(int line,
int col)
Gets one element from the array if this is int datatype
|
short |
getElemShort(int line,
int col)
Gets one element from the array if this is short datatype
|
float[][] |
getFloatBlock(int block)
Gets a minimum block of data.
|
float[] |
getFloatLine(int line)
Obtiene una línea de datos de esta banda para buffers con tipo
de dato float.
|
int |
getHeight()
Alto de la banda
|
int[][] |
getIntBlock(int block)
Gets a minimum block of data.
|
int[] |
getIntLine(int line)
Obtiene una línea de datos de esta banda para buffers con tipo
de dato int.
|
int |
getNumberOfBlocks()
Gets the number of blocks
|
short[][] |
getShortBlock(int block)
Gets a minimum block of data.
|
short[] |
getShortLine(int line)
Obtiene una línea de datos de esta banda para buffers con tipo
de dato short.
|
int |
getWidth()
Ancho de la banda
|
boolean |
isHorizontalBlock()
Returns true if the block is horizontal and false if is not
|
void |
setBandNumber(int band)
Assigns a new band number
|
void |
setByteBlock(byte[][] data,
int block)
Sets a minimum byte block.
|
void |
setByteLine(byte[] data,
int line)
Sets one line of byte data
|
void |
setDoubleBlock(double[][] data,
int block)
Sets a minimum double block.
|
void |
setDoubleLine(double[] data,
int line)
Sets one line of double data
|
void |
setElem(int line,
int col,
byte data)
Sets one byte element
|
void |
setElem(int line,
int col,
double data)
Sets one double element
|
void |
setElem(int line,
int col,
float data)
Sets one float element
|
void |
setElem(int line,
int col,
int data)
Sets one int element
|
void |
setElem(int line,
int col,
short data)
Sets one short element
|
void |
setFloatBlock(float[][] data,
int block)
Sets a minimum float block.
|
void |
setFloatLine(float[] data,
int line)
Sets one line of float data
|
void |
setIntBlock(int[][] data,
int block)
Sets a minimum int block.
|
void |
setIntLine(int[] data,
int line)
Sets one line of int data
|
void |
setShortBlock(short[][] data,
int block)
Sets a minimum short block.
|
void |
setShortLine(short[] data,
int line)
Sets one line of short data
|
getMax, getMaxRGB, getMean, getMin, getMinRGB, getSecondMax, getSecondMaxRGB, getSecondMin, getSecondMinRGB, setMax, setMaxRGB, setMean, setMin, setMinRGB, setSecondMax, setSecondMaxRGB, setSecondMin, setSecondMinRGB
static final int TYPE_UNDEFINED
static final int TYPE_BYTE
static final int TYPE_SHORT
static final int TYPE_USHORT
static final int TYPE_INT
static final int TYPE_FLOAT
static final int TYPE_DOUBLE
static final int TYPE_IMAGE
int getWidth()
int getHeight()
int getDataType()
int getBlockSize()
int getNumberOfBlocks()
boolean isHorizontalBlock()
void setBandNumber(int band)
band
- New band numberint getBandNumber()
byte[][] getByteBlock(int block)
short[][] getShortBlock(int block)
int[][] getIntBlock(int block)
float[][] getFloatBlock(int block)
double[][] getDoubleBlock(int block)
byte[] getByteLine(int line) throws OperationNotSupportedException
line
- Número de línea del buffer a recuperarOperationNotSupportedException
short[] getShortLine(int line) throws OperationNotSupportedException
line
- Número de línea del buffer a recuperarOperationNotSupportedException
int[] getIntLine(int line) throws OperationNotSupportedException
line
- Número de línea del buffer a recuperarOperationNotSupportedException
float[] getFloatLine(int line) throws OperationNotSupportedException
line
- Número de línea del buffer a recuperarOperationNotSupportedException
double[] getDoubleLine(int line) throws OperationNotSupportedException
line
- Número de línea del buffer a recuperarOperationNotSupportedException
byte getElemByte(int line, int col)
line
- Y positioncol
- X positionband
- Number of band to readshort getElemShort(int line, int col)
line
- Y positioncol
- X positionband
- Number of band to readint getElemInt(int line, int col)
line
- Y positioncol
- X positionband
- Number of band to readfloat getElemFloat(int line, int col)
line
- Y positioncol
- X positionband
- Number of band to readdouble getElemDouble(int line, int col)
line
- Y positioncol
- X positionband
- Number of band to readvoid setByteLine(byte[] data, int line) throws OperationNotSupportedException
data
- line of dataline
- Number of line to setOperationNotSupportedException
void setShortLine(short[] data, int line) throws OperationNotSupportedException
data
- line of dataline
- Number of line to setOperationNotSupportedException
void setIntLine(int[] data, int line) throws OperationNotSupportedException
data
- line of dataline
- Number of line to setOperationNotSupportedException
void setFloatLine(float[] data, int line) throws OperationNotSupportedException
data
- line of dataline
- Number of line to setOperationNotSupportedException
void setDoubleLine(double[] data, int line) throws OperationNotSupportedException
data
- line of dataline
- Number of line to setOperationNotSupportedException
void setElem(int line, int col, byte data) throws OperationNotSupportedException
line
- Y positioncol
- X positiondata
- data value to setOperationNotSupportedException
void setElem(int line, int col, short data) throws OperationNotSupportedException
line
- Y positioncol
- X positiondata
- data value to setOperationNotSupportedException
void setElem(int line, int col, int data) throws OperationNotSupportedException
line
- Y positioncol
- X positiondata
- data value to setOperationNotSupportedException
void setElem(int line, int col, float data) throws OperationNotSupportedException
line
- Y positioncol
- X positiondata
- data value to setOperationNotSupportedException
void setElem(int line, int col, double data) throws OperationNotSupportedException
line
- Y positioncol
- X positiondata
- data value to setOperationNotSupportedException
void assign(byte value) throws OperationNotSupportedException
value
- Value to setOperationNotSupportedException
void assign(short value) throws OperationNotSupportedException
value
- Value to setOperationNotSupportedException
void assign(int value) throws OperationNotSupportedException
value
- Value to setOperationNotSupportedException
void assign(float value) throws OperationNotSupportedException
value
- Value to setOperationNotSupportedException
void assign(double value) throws OperationNotSupportedException
value
- Value to setOperationNotSupportedException
void setByteBlock(byte[][] data, int block) throws OperationNotSupportedException
data
- Data buffer in memory. This is an array of two dimensions (width x heigth).block
- Number of block to assignOperationNotSupportedException
void setShortBlock(short[][] data, int block) throws OperationNotSupportedException
data
- Data buffer in memory. This is an array of two dimensions (width x heigth).block
- Number of block to assignOperationNotSupportedException
void setIntBlock(int[][] data, int block) throws OperationNotSupportedException
data
- Data buffer in memory. This is an array of two dimensions (width x heigth).block
- Number of block to assignOperationNotSupportedException
void setFloatBlock(float[][] data, int block) throws OperationNotSupportedException
data
- Data buffer in memory. This is an array of two dimensions (width x heigth).block
- Number of block to assignOperationNotSupportedException
void setDoubleBlock(double[][] data, int block) throws OperationNotSupportedException
data
- Data buffer in memory. This is an array of two dimensions (width x heigth).block
- Number of block to assignOperationNotSupportedException