boofcv.struct.image
Class GrayI8<T extends GrayI8>
- java.lang.Object
-
- boofcv.struct.image.ImageBase<T>
-
- boofcv.struct.image.ImageGray<T>
-
- boofcv.struct.image.GrayI<T>
-
- boofcv.struct.image.GrayI8<T>
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public abstract class GrayI8<T extends GrayI8> extends GrayI<T>
Base class for images with 8-bit pixels.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description byte[]data
-
Constructor Summary
Constructors Constructor and Description GrayI8()GrayI8(int width, int height)Creates a new gray scale (single band/color) image.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description byte[]getData()ImageDataTypegetDataType()Returns image type informationvoidset(int x, int y, int value)Sets the value of the specified pixel.voidsetData(byte[] data)voidunsafe_set(int x, int y, int value)Set function which does not perform bounds checking.-
Methods inherited from class boofcv.struct.image.GrayI
get, print, printBinary, printNotZero, unsafe_get
-
Methods inherited from class boofcv.struct.image.ImageBase
_createNew, clone, createSameShape, getHeight, getImageType, getIndex, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidth, subimage
-
-
-
-
Constructor Detail
-
GrayI8
public GrayI8(int width, int height)Creates a new gray scale (single band/color) image.- Parameters:
width- number of columns in the image.height- number of rows in the image.
-
GrayI8
public GrayI8()
-
-
Method Detail
-
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)Description copied from class:GrayISet function which does not perform bounds checking.- Specified by:
unsafe_setin classGrayI<T extends GrayI8>- Parameters:
x- pixel coordinate.y- pixel coordinate.value- The pixel's new value.
-
getDataType
public ImageDataType getDataType()
Description copied from class:ImageGrayReturns image type information- Overrides:
getDataTypein classGrayI<T extends GrayI8>- Returns:
- The type of image.
-
getData
public byte[] getData()
-
setData
public void setData(byte[] data)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG