public class ImageFloat32 extends ImageFloat<ImageFloat32>
Image with a pixel type of 32-bit float.
| Modifier and Type | Field and Description |
|---|---|
float[] |
data |
| Constructor and Description |
|---|
ImageFloat32()
Creates an image with no data declared and the width/height set to zero.
|
ImageFloat32(int width,
int height)
Creates a new gray scale (single band/color) image.
|
| Modifier and Type | Method and Description |
|---|---|
ImageFloat32 |
_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)
Returns the value of the specified pixel.
|
ImageDataType |
getTypeInfo()
Returns image type information
|
void |
print() |
void |
print(String format) |
void |
printInt() |
void |
set(int x,
int y,
float value)
Sets the value of the specified pixel.
|
float |
unsafe_get(int x,
int y) |
void |
unsafe_set(int x,
int y,
float value) |
reshape, setTo, subimageclone, getHeight, getIndex, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidthpublic ImageFloat32(int width,
int height)
width - number of columns in the image.height - number of rows in the image.public ImageFloat32()
public float get(int x,
int y)
x - pixel coordinate.y - pixel coordinate.public float unsafe_get(int x,
int y)
public void set(int x,
int y,
float value)
x - pixel coordinate.y - pixel coordinate.value - The pixel's new value.public void unsafe_set(int x,
int y,
float value)
public void print()
public void print(String format)
public void printInt()
protected Object _getData()
ImageSingleBand_getData in class ImageSingleBand<ImageFloat32>protected void _setData(Object data)
ImageSingleBand_setData in class ImageSingleBand<ImageFloat32>data - data arraypublic ImageFloat32 _createNew(int imgWidth, int imgHeight)
ImageBase_createNew in class ImageBase<ImageFloat32>imgWidth - Width of the new imageimgHeight - height of the new imagepublic ImageDataType getTypeInfo()
ImageSingleBandgetTypeInfo in class ImageFloat<ImageFloat32>Copyright © 2013. All Rights Reserved.