boofcv.struct.image
Class InterleavedS8
- 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<InterleavedS8>
-
- boofcv.struct.image.InterleavedS8
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class InterleavedS8 extends InterleavedI8<InterleavedS8>
An image where the primitive type is a signed byte.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class boofcv.struct.image.InterleavedI8
data
-
Fields inherited from class boofcv.struct.image.ImageInterleaved
numBands
-
-
Constructor Summary
Constructors Constructor and Description InterleavedS8()InterleavedS8(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 InterleavedS8_createNew(int imgWidth, int imgHeight)Returns a new image.voidget_unsafe(int x, int y, int[] storage)intgetBand(int x, int y, int band)Returns the value of the specified band in the specified pixel.ImageDataTypegetDataType()Returns image type information-
Methods inherited from class boofcv.struct.image.InterleavedI8
get, set_unsafe, set, setBand, setBand
-
Methods inherited from class boofcv.struct.image.InterleavedInteger
get, set
-
Methods inherited from class boofcv.struct.image.ImageInterleaved
getIndex, getIndex, getNumBands, reshape, setNumBands, setTo, subimage
-
Methods inherited from class boofcv.struct.image.ImageBase
clone, createSameShape, getHeight, getImageType, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidth, subimage
-
-
-
-
Constructor Detail
-
InterleavedS8
public InterleavedS8(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.
-
InterleavedS8
public InterleavedS8()
-
-
Method Detail
-
getDataType
public ImageDataType getDataType()
Description copied from class:ImageInterleavedReturns image type information- Overrides:
getDataTypein classInterleavedI8<InterleavedS8>- Returns:
- The type of image.
-
getBand
public int getBand(int x, int y, int band)Returns the value of the specified band in the specified pixel.- Specified by:
getBandin classInterleavedInteger<InterleavedS8>- Parameters:
x- pixel coordinate.y- pixel coordinate.band- which color band in the pixel- Returns:
- an intensity value.
-
get_unsafe
public void get_unsafe(int x, int y, int[] storage)- Specified by:
get_unsafein classInterleavedInteger<InterleavedS8>
-
_createNew
public InterleavedS8 _createNew(int imgWidth, int imgHeight)
Description copied from class:ImageBaseReturns a new image. If either width or height are set to -1 then none of the class parameters set. Otherwise a new image is created with the specified dimensions which has all other parameters the same as the original matrix.- Specified by:
_createNewin classImageBase<InterleavedS8>- Parameters:
imgWidth- Width of the new imageimgHeight- height of the new image- Returns:
- new image
-
-
DataMelt 3.0 © DataMelt by jWork.ORG