public class GrayS16 extends GrayI16<GrayS16>
Image with a pixel type of signed 16-bit integer.
| Constructor and Description |
|---|
GrayS16()
Creates an image with no data declared and the width/height set to zero.
|
GrayS16(int width,
int height)
Creates a new gray scale (single band/color) image.
|
| Modifier and Type | Method and Description |
|---|---|
GrayS16 |
_createNew(int imgWidth,
int imgHeight)
Returns a new image.
|
ImageDataType |
getDataType()
Returns image type information
|
int |
unsafe_get(int x,
int y)
Get function which does not perform bounds checking.
|
_getData, _setData, getData, set, setData, unsafe_setget, print, printBinary, printNotZeroclone, createSameShape, getHeight, getImageType, getIndex, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidth, subimagepublic GrayS16(int width,
int height)
width - number of columns in the image.height - number of rows in the image.public GrayS16()
public int unsafe_get(int x,
int y)
GrayIunsafe_get in class GrayI<GrayS16>x - pixel coordinate.y - pixel coordinate.public ImageDataType getDataType()
ImageGraygetDataType in class GrayI16<GrayS16>public GrayS16 _createNew(int imgWidth, int imgHeight)
ImageBase_createNew in class ImageBase<GrayS16>imgWidth - Width of the new imageimgHeight - height of the new image