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.EachPixelNested classes/interfaces inherited from class boofcv.struct.image.ImageBase
ImageBase.PixelXY -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object_getData()Returns the data array the image is stored in.voidSets the image's internal data array.voidCopies the column into the array.short[]getData()Returns image type informationvoidset(int x, int y, int value) Sets the value of the specified pixel.voidsetData(short[] data) voidunsafe_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_getMethods inherited from class boofcv.struct.image.ImageGray
copyRow, create, createSameShape, initialize, reshape, reshape, setTo, subimageMethods 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_setin classGrayI<T extends GrayI16<T>>- Parameters:
x- pixel coordinate.y- pixel coordinate.value- The pixel's new value.
-
copyCol
Description copied from class:ImageBaseCopies the column into the array. -
_getData
Description copied from class:ImageGrayReturns the data array the image is stored in. -
_setData
Description copied from class:ImageGraySets the image's internal data array. -
getDataType
Description copied from class:ImageGrayReturns image type information- Overrides:
getDataTypein classGrayI<T extends GrayI16<T>>- Returns:
- The type of image.
-
getData
public short[] getData() -
setData
public void setData(short[] data)
-