public class GrayU8 extends GrayI8<GrayU8>
Image with a pixel type of unsigned 8-bit integer.
| Constructor and Description |
|---|
GrayU8() |
GrayU8(int width,
int height)
Creates a new gray scale (single band/color) image.
|
| Modifier and Type | Method and Description |
|---|---|
GrayU8 |
_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 GrayU8(int width,
int height)
width - number of columns in the image.height - number of rows in the image.public GrayU8()
public int unsafe_get(int x,
int y)
GrayIunsafe_get in class GrayI<GrayU8>x - pixel coordinate.y - pixel coordinate.public ImageDataType getDataType()
ImageGraygetDataType in class GrayI8<GrayU8>public GrayU8 _createNew(int imgWidth, int imgHeight)
ImageBase_createNew in class ImageBase<GrayU8>imgWidth - Width of the new imageimgHeight - height of the new image