public class InterleavedF32 extends ImageInterleaved<InterleavedF32>
ImageInterleaved for data of type float.
| Modifier and Type | Field and Description |
|---|---|
float[] |
data |
numBands| Constructor and Description |
|---|
InterleavedF32() |
InterleavedF32(int width,
int height,
int numBands)
Creates a new image with an arbitrary number of bands/colors.
|
| Modifier and Type | Method and Description |
|---|---|
InterleavedF32 |
_createNew(int imgWidth,
int imgHeight)
Returns a new image.
|
protected java.lang.Object |
_getData()
Returns the data array the image is stored in.
|
protected void |
_setData(java.lang.Object data)
Sets the image's internal data array.
|
void |
get_unsafe(int x,
int y,
float[] storage) |
float[] |
get(int x,
int y,
float[] storage)
Returns the pixel's value for all the bands as an array.
|
float |
getBand(int x,
int y,
int band)
Returns the value of the specified band in the specified pixel.
|
ImageDataType |
getDataType()
Returns image type information
|
protected java.lang.Class |
getPrimitiveDataType() |
void |
print(java.lang.String format) |
void |
set_unsafe(int x,
int y,
float[] value) |
void |
set(int x,
int y,
float... value)
Sets the pixel's value for all the bands using an array.
|
void |
setBand(int x,
int y,
int band,
float value)
Returns the value of the specified band in the specified pixel.
|
getIndex, getIndex, getNumBands, reshape, setNumBands, setTo, subimageclone, createSameShape, getHeight, getImageType, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidth, subimagepublic InterleavedF32(int width,
int height,
int numBands)
width - number of columns in the image.height - number of rows in the image.numBands - number of bands/colors in the image.public InterleavedF32()
public ImageDataType getDataType()
ImageInterleavedgetDataType in class ImageInterleaved<InterleavedF32>public float[] get(int x,
int y,
float[] storage)
x - pixel coordinate.y - pixel coordinate.storage - If not null then the pixel's value is written here. If null a new array is created.public void get_unsafe(int x,
int y,
float[] storage)
public void set(int x,
int y,
float... value)
x - pixel coordinate.y - pixel coordinate.value - The pixel's new value for each band.public void set_unsafe(int x,
int y,
float[] value)
public float getBand(int x,
int y,
int band)
x - pixel coordinate.y - pixel coordinate.band - which color band in the pixelpublic void setBand(int x,
int y,
int band,
float value)
x - pixel coordinate.y - pixel coordinate.band - which color band in the pixelvalue - The new value of the element.protected java.lang.Object _getData()
ImageInterleaved_getData in class ImageInterleaved<InterleavedF32>protected java.lang.Class getPrimitiveDataType()
getPrimitiveDataType in class ImageInterleaved<InterleavedF32>protected void _setData(java.lang.Object data)
ImageInterleaved_setData in class ImageInterleaved<InterleavedF32>data - data arraypublic InterleavedF32 _createNew(int imgWidth, int imgHeight)
ImageBase_createNew in class ImageBase<InterleavedF32>imgWidth - Width of the new imageimgHeight - height of the new imagepublic void print(java.lang.String format)