public class GrayS32 extends GrayI<GrayS32>
Gray scale image with a pixel type of signed 32-bit integer
| Modifier and Type | Field and Description |
|---|---|
int[] |
data |
| Constructor and Description |
|---|
GrayS32()
Creates an image with no data declared and the width/height set to zero.
|
GrayS32(int width,
int height)
Creates a new gray scale (single band/color) image.
|
| Modifier and Type | Method and Description |
|---|---|
GrayS32 |
_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, printNotZeroclone, createSameShape, getHeight, getImageType, getIndex, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidth, subimagepublic GrayS32(int width,
int height)
width - number of columns in the image.height - number of rows in the image.public GrayS32()
public void unsafe_set(int x,
int y,
int value)
GrayIunsafe_set in class GrayI<GrayS32>x - pixel coordinate.y - pixel coordinate.value - The pixel's new value.public int unsafe_get(int x,
int y)
GrayIunsafe_get in class GrayI<GrayS32>x - pixel coordinate.y - pixel coordinate.public void set(int x,
int y,
int value)
public ImageDataType getDataType()
ImageGraygetDataType in class GrayI<GrayS32>protected java.lang.Object _getData()
ImageGrayprotected void _setData(java.lang.Object data)
ImageGraypublic GrayS32 _createNew(int imgWidth, int imgHeight)
ImageBase_createNew in class ImageBase<GrayS32>imgWidth - Width of the new imageimgHeight - height of the new imagepublic int[] getData()
public void setData(int[] data)