Package boofcv.struct.image
Class GrayI16<T extends GrayI16<T>>
java.lang.Object
boofcv.struct.image.ImageBase<T>
boofcv.struct.image.ImageGray<T>
boofcv.struct.image.GrayI<T>
boofcv.struct.image.GrayI16<T>
- All Implemented Interfaces:
Serializable
,Cloneable
Base class for images with 16-bit pixels.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class boofcv.struct.image.GrayI
GrayI.EachPixel
Nested classes/interfaces inherited from class boofcv.struct.image.ImageBase
ImageBase.PixelXY
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
_getData()
Returns the data array the image is stored in.void
Sets the image's internal data array.void
Copies the column into the array.short[]
getData()
Returns image type informationvoid
set
(int x, int y, int value) Sets the value of the specified pixel.void
setData
(short[] data) void
unsafe_set
(int x, int y, int value) Sets the value of the specified pixel.Methods inherited from class boofcv.struct.image.GrayI
forEachPixel, get, print, printBinary, printNotZero, unsafe_get
Methods inherited from class boofcv.struct.image.ImageGray
copyRow, create, createSameShape, initialize, reshape, reshape, setTo, subimage
Methods inherited from class boofcv.struct.image.ImageBase
clone, createNew, createSameShape, forEachXY, getImageType, getIndex, indexToPixelX, indexToPixelY, isInBounds, isSameShape, isSubimage, reshapeTo, subimage, totalPixels
-
Field Details
-
data
public short[] data
-
-
Constructor Details
-
GrayI16
protected GrayI16(int width, int height) -
GrayI16
protected GrayI16()
-
-
Method Details
-
set
public void set(int x, int y, int value) Sets the value of the specified pixel. -
unsafe_set
public void unsafe_set(int x, int y, int value) Sets the value of the specified pixel.- Specified by:
unsafe_set
in classGrayI<T extends GrayI16<T>>
- Parameters:
x
- pixel coordinate.y
- pixel coordinate.value
- The pixel's new value.
-
copyCol
Description copied from class:ImageBase
Copies the column into the array. -
_getData
Description copied from class:ImageGray
Returns the data array the image is stored in. -
_setData
Description copied from class:ImageGray
Sets the image's internal data array. -
getDataType
Description copied from class:ImageGray
Returns image type information- Overrides:
getDataType
in classGrayI<T extends GrayI16<T>>
- Returns:
- The type of image.
-
getData
public short[] getData() -
setData
public void setData(short[] data)
-