public class InterleavedU8 extends InterleavedI8<InterleavedU8>
An image where the primitive type is an unsigned byte.
datanumBands| Constructor and Description |
|---|
InterleavedU8() |
InterleavedU8(int width,
int height,
int numBands)
Creates a new image with an arbitrary number of bands/colors.
|
| Modifier and Type | Method and Description |
|---|---|
InterleavedU8 |
_createNew(int imgWidth,
int imgHeight)
Returns a new image.
|
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
|
_getData, _setData, get, getPrimitiveDataType, set_unsafe, set, setBand, setBandget, setgetIndex, getIndex, getNumBands, reshape, setNumBands, setTo, subimageclone, createSameShape, getHeight, getImageType, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidth, subimagepublic InterleavedU8(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 InterleavedU8()
public ImageDataType getDataType()
ImageInterleavedgetDataType in class InterleavedI8<InterleavedU8>public int getBand(int x,
int y,
int band)
getBand in class InterleavedInteger<InterleavedU8>x - pixel coordinate.y - pixel coordinate.band - which color band in the pixelpublic void get_unsafe(int x,
int y,
int[] storage)
get_unsafe in class InterleavedInteger<InterleavedU8>public InterleavedU8 _createNew(int imgWidth, int imgHeight)
ImageBase_createNew in class ImageBase<InterleavedU8>imgWidth - Width of the new imageimgHeight - height of the new image