public class InterleavedS32 extends InterleavedInteger<InterleavedS32>
ImageInterleaved for data of type int.
| Modifier and Type | Field and Description |
|---|---|
int[] |
data |
numBands| Constructor and Description |
|---|
InterleavedS32() |
InterleavedS32(int width,
int height,
int numBands)
Creates a new image with an arbitrary number of bands/colors.
|
| Modifier and Type | Method and Description |
|---|---|
InterleavedS32 |
_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,
int[] storage) |
int |
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 |
set_unsafe(int x,
int y,
int... value)
Sets the pixel's value for all the bands using an array.
|
void |
setBand(int x,
int y,
int band,
int value)
Returns the value of the specified band in the specified pixel.
|
get, setgetIndex, getIndex, getNumBands, reshape, setNumBands, setTo, subimageclone, createSameShape, getHeight, getImageType, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidth, subimagepublic InterleavedS32(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 InterleavedS32()
public ImageDataType getDataType()
ImageInterleavedgetDataType in class ImageInterleaved<InterleavedS32>public void get_unsafe(int x,
int y,
int[] storage)
get_unsafe in class InterleavedInteger<InterleavedS32>public void set_unsafe(int x,
int y,
int... value)
set_unsafe in class InterleavedInteger<InterleavedS32>x - pixel coordinate.y - pixel coordinate.value - The pixel's new value for each band.public int getBand(int x,
int y,
int band)
getBand in class InterleavedInteger<InterleavedS32>x - pixel coordinate.y - pixel coordinate.band - which color band in the pixelpublic void setBand(int x,
int y,
int band,
int value)
setBand in class InterleavedInteger<InterleavedS32>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<InterleavedS32>protected java.lang.Class getPrimitiveDataType()
getPrimitiveDataType in class ImageInterleaved<InterleavedS32>protected void _setData(java.lang.Object data)
ImageInterleaved_setData in class ImageInterleaved<InterleavedS32>data - data arraypublic InterleavedS32 _createNew(int imgWidth, int imgHeight)
ImageBase_createNew in class ImageBase<InterleavedS32>imgWidth - Width of the new imageimgHeight - height of the new image