boofcv.struct.image
Class InterleavedInteger<T extends InterleavedInteger>
- java.lang.Object
-
- boofcv.struct.image.ImageBase<T>
-
- boofcv.struct.image.ImageMultiBand<T>
-
- boofcv.struct.image.ImageInterleaved<T>
-
- boofcv.struct.image.InterleavedInteger<T>
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- InterleavedI16, InterleavedI8, InterleavedS32
public abstract class InterleavedInteger<T extends InterleavedInteger> extends ImageInterleaved<T>
Base class for integer interleaved images.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class boofcv.struct.image.ImageInterleaved
numBands
-
-
Constructor Summary
Constructors Constructor and Description InterleavedInteger()InterleavedInteger(int width, int height, int numBands)Creates a new image with an arbitrary number of bands/colors.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract voidget_unsafe(int x, int y, int[] storage)int[]get(int x, int y, int[] storage)Returns the pixel's value for all the bands as an array.abstract intgetBand(int x, int y, int band)Returns the value of the specified band in the specified pixel.abstract voidset_unsafe(int x, int y, int... value)voidset(int x, int y, int... value)Sets the pixel's value for all the bands using an array.abstract 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.ImageInterleaved
getDataType, 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
-
InterleavedInteger
public InterleavedInteger(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.
-
InterleavedInteger
public InterleavedInteger()
-
-
Method Detail
-
get
public int[] get(int x, int y, int[] 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.
-
get_unsafe
public abstract void get_unsafe(int x, int y, int[] storage)
-
set
public void set(int x, int y, int... 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.
-
set_unsafe
public abstract void set_unsafe(int x, int y, int... value)
-
getBand
public abstract int getBand(int x, int y, int band)Returns the value of the specified band in the specified pixel.- Parameters:
x- pixel coordinate.y- pixel coordinate.band- which color band in the pixel- Returns:
- an intensity value.
-
setBand
public abstract void setBand(int x, int y, int band, int 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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG