public class ImageSInt32 extends ImageInteger<ImageSInt32>
Image with a pixel type of signed 32-bit integer
| Modifier and Type | Field and Description |
|---|---|
int[] |
data |
| Constructor and Description |
|---|
ImageSInt32()
Creates an image with no data declared and the width/height set to zero.
|
ImageSInt32(int width,
int height)
Creates a new gray scale (single band/color) image.
|
| Modifier and Type | Method and Description |
|---|---|
ImageSInt32 |
_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.
|
int[] |
getData() |
ImageDataType |
getDataType()
Returns image type information
|
void |
set(int x,
int y,
int value)
Sets the value of the specified pixel.
|
void |
setData(int[] data) |
int |
unsafe_get(int x,
int y)
Get function which does not perform bounds checking.
|
void |
unsafe_set(int x,
int y,
int value)
Set function which does not perform bounds checking.
|
get, print, printBinary, printNotZeroreshape, setTo, subimageclone, createSameShape, getHeight, getImageType, getIndex, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidth, subimagepublic ImageSInt32(int width,
int height)
width - number of columns in the image.height - number of rows in the image.public ImageSInt32()
public void unsafe_set(int x,
int y,
int value)
ImageIntegerunsafe_set in class ImageInteger<ImageSInt32>x - pixel coordinate.y - pixel coordinate.value - The pixel's new value.public int unsafe_get(int x,
int y)
ImageIntegerunsafe_get in class ImageInteger<ImageSInt32>x - pixel coordinate.y - pixel coordinate.public void set(int x,
int y,
int value)
set in class ImageInteger<ImageSInt32>x - pixel coordinate.y - pixel coordinate.value - The pixel's new value.public ImageDataType getDataType()
ImageSingleBandgetDataType in class ImageInteger<ImageSInt32>protected java.lang.Object _getData()
ImageSingleBand_getData in class ImageSingleBand<ImageSInt32>protected void _setData(java.lang.Object data)
ImageSingleBand_setData in class ImageSingleBand<ImageSInt32>data - data arraypublic ImageSInt32 _createNew(int imgWidth, int imgHeight)
ImageBase_createNew in class ImageBase<ImageSInt32>imgWidth - Width of the new imageimgHeight - height of the new imagepublic int[] getData()
public void setData(int[] data)