boofcv.struct.image
Class InterleavedI8<T extends InterleavedI8>
- java.lang.Object
-
- boofcv.struct.image.ImageBase<T>
-
- boofcv.struct.image.ImageMultiBand<T>
-
- boofcv.struct.image.ImageInterleaved<T>
-
- boofcv.struct.image.InterleavedInteger<T>
-
- boofcv.struct.image.InterleavedI8<T>
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- InterleavedS8, InterleavedU8
public abstract class InterleavedI8<T extends InterleavedI8> extends InterleavedInteger<T>
ImageInterleavedfor data of type byte.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description byte[]data-
Fields inherited from class boofcv.struct.image.ImageInterleaved
numBands
-
-
Constructor Summary
Constructors Constructor and Description InterleavedI8()InterleavedI8(int width, int height, int numBands)Creates a new image with an arbitrary number of bands/colors.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description byte[]get(int x, int y, byte[] storage)Returns the pixel's value for all the bands as an array.ImageDataTypegetDataType()Returns image type informationvoidset_unsafe(int x, int y, int... value)voidset(int x, int y, byte... value)Sets the pixel's value for all the bands using an array.voidsetBand(int x, int y, int band, byte value)Returns the value of the specified band in the specified pixel.voidsetBand(int x, int y, int band, int value)Returns the value of the specified band in the specified pixel.-
Methods inherited from class boofcv.struct.image.InterleavedInteger
get_unsafe, get, getBand, set
-
Methods inherited from class boofcv.struct.image.ImageInterleaved
getIndex, getIndex, getNumBands, reshape, setNumBands, setTo, subimage
-
Methods inherited from class boofcv.struct.image.ImageBase
_createNew, clone, createSameShape, getHeight, getImageType, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidth, subimage
-
-
-
-
Constructor Detail
-
InterleavedI8
public InterleavedI8(int width, int height, int numBands)Creates a new image with an arbitrary number of bands/colors.- Parameters:
width- number of columns in the image.height- number of rows in the image.numBands- number of bands/colors in the image.
-
InterleavedI8
public InterleavedI8()
-
-
Method Detail
-
getDataType
public ImageDataType getDataType()
Description copied from class:ImageInterleavedReturns image type information- Specified by:
getDataTypein classImageInterleaved<T extends InterleavedI8>- Returns:
- The type of image.
-
get
public byte[] get(int x, int y, byte[] storage)Returns the pixel's value for all the bands as an array.- Parameters:
x- pixel coordinate.y- pixel coordinate.storage- If not null then the pixel's value is written here. If null a new array is created.- Returns:
- The pixel's value.
-
set
public void set(int x, int y, byte... value)Sets the pixel's value for all the bands using an array.- Parameters:
x- pixel coordinate.y- pixel coordinate.value- The pixel's new value for each band.
-
setBand
public void setBand(int x, int y, int band, byte value)Returns the value of the specified band in the specified pixel.- Parameters:
x- pixel coordinate.y- pixel coordinate.band- which color band in the pixelvalue- The new value of the element.
-
set_unsafe
public void set_unsafe(int x, int y, int... value)- Specified by:
set_unsafein classInterleavedInteger<T extends InterleavedI8>
-
setBand
public void setBand(int x, int y, int band, int value)Description copied from class:InterleavedIntegerReturns the value of the specified band in the specified pixel.- Specified by:
setBandin classInterleavedInteger<T extends InterleavedI8>- Parameters:
x- pixel coordinate.y- pixel coordinate.band- which color band in the pixelvalue- The new value of the element.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG