Package boofcv.struct.image
Class InterleavedS8
java.lang.Object
- All Implemented Interfaces:
Serializable
,Cloneable
An image where the primitive type is a signed byte.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class boofcv.struct.image.InterleavedInteger
InterleavedInteger.EachPixel
Nested classes/interfaces inherited from class boofcv.struct.image.ImageBase
ImageBase.PixelXY
-
Field Summary
Fields inherited from class boofcv.struct.image.InterleavedI8
data
Fields inherited from class boofcv.struct.image.ImageInterleaved
numBands
-
Constructor Summary
ConstructorDescriptionInterleavedS8
(int width, int height, int numBands) Creates a new image with an arbitrary number of bands/colors. -
Method Summary
Modifier and TypeMethodDescriptioncreateNew
(int imgWidth, int imgHeight) Returns a new image.protected int
getArrayValue
(int index) int
getBand
(int x, int y, int band) Returns the value of the specified band in the specified pixel.Returns image type informationvoid
unsafe_get
(int x, int y, int[] storage) Methods inherited from class boofcv.struct.image.InterleavedI8
_getData, _setData, copyCol, get, getPrimitiveDataType, set, setBand, setBand, toString_element, unsafe_set
Methods inherited from class boofcv.struct.image.InterleavedInteger
forEachPixel, get, set
Methods inherited from class boofcv.struct.image.ImageInterleaved
copyRow, create, createSameShape, getIndex, getIndex, getNumBands, reshape, reshape, setNumberOfBands, setTo, subimage, toString
Methods inherited from class boofcv.struct.image.ImageMultiBand
reshapeTo
Methods inherited from class boofcv.struct.image.ImageBase
clone, createSameShape, forEachXY, getImageType, indexToPixelX, indexToPixelY, isInBounds, isSameShape, isSubimage, subimage, totalPixels
-
Constructor Details
-
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 Details
-
getDataType
Description copied from class:ImageInterleaved
Returns image type information- Overrides:
getDataType
in 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:
getBand
in classInterleavedInteger<InterleavedS8>
- Parameters:
x
- pixel coordinate.y
- pixel coordinate.band
- which color band in the pixel- Returns:
- an intensity value.
-
unsafe_get
public void unsafe_get(int x, int y, int[] storage) - Specified by:
unsafe_get
in classInterleavedInteger<InterleavedS8>
-
getArrayValue
protected int getArrayValue(int index) - Specified by:
getArrayValue
in classInterleavedInteger<InterleavedS8>
-
createNew
Description copied from class:ImageBase
Returns 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:
createNew
in classImageBase<InterleavedS8>
- Parameters:
imgWidth
- Width of the new imageimgHeight
- height of the new image- Returns:
- new image
-