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 Object |
_getData()
Returns the data array the image is stored in.
|
protected void |
_setData(Object data)
Sets the image's internal data array.
|
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.
|
protected Class |
getDataType() |
ImageDataType |
getTypeInfo()
Returns image type information
|
void |
print(String format) |
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, getHeight, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidthpublic 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 getTypeInfo()
ImageInterleavedgetTypeInfo 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 set(int x,
int y,
float... value)
x - pixel coordinate.y - pixel coordinate.value - The pixel's new value for each band.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 Object _getData()
ImageInterleaved_getData in class ImageInterleaved<InterleavedF32>protected Class getDataType()
getDataType in class ImageInterleaved<InterleavedF32>protected void _setData(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(String format)
Copyright © 2013. All Rights Reserved.