boofcv.struct.image
Class InterleavedS32
- java.lang.Object
-
- boofcv.struct.image.ImageBase<T>
-
- boofcv.struct.image.ImageMultiBand<T>
-
- boofcv.struct.image.ImageInterleaved<T>
-
- boofcv.struct.image.InterleavedInteger<InterleavedS32>
-
- boofcv.struct.image.InterleavedS32
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class InterleavedS32 extends InterleavedInteger<InterleavedS32>
ImageInterleavedfor data of type int.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description int[]data-
Fields inherited from class boofcv.struct.image.ImageInterleaved
numBands
-
-
Constructor Summary
Constructors Constructor and Description InterleavedS32()InterleavedS32(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 InterleavedS32_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 informationvoidset_unsafe(int x, int y, int... value)Sets the pixel's value for all the bands using an array.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, 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
-
InterleavedS32
public InterleavedS32(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.
-
InterleavedS32
public InterleavedS32()
-
-
Method Detail
-
getDataType
public ImageDataType getDataType()
Description copied from class:ImageInterleavedReturns image type information- Specified by:
getDataTypein classImageInterleaved<InterleavedS32>- Returns:
- The type of image.
-
get_unsafe
public void get_unsafe(int x, int y, int[] storage)- Specified by:
get_unsafein classInterleavedInteger<InterleavedS32>
-
set_unsafe
public void set_unsafe(int x, int y, int... value)Sets the pixel's value for all the bands using an array.- Specified by:
set_unsafein classInterleavedInteger<InterleavedS32>- Parameters:
x- pixel coordinate.y- pixel coordinate.value- The pixel's new value for each band.
-
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<InterleavedS32>- Parameters:
x- pixel coordinate.y- pixel coordinate.band- which color band in the pixel- Returns:
- an intensity value.
-
setBand
public void setBand(int x, int y, int band, int value)Returns the value of the specified band in the specified pixel.- Specified by:
setBandin classInterleavedInteger<InterleavedS32>- Parameters:
x- pixel coordinate.y- pixel coordinate.band- which color band in the pixelvalue- The new value of the element.
-
_createNew
public InterleavedS32 _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<InterleavedS32>- Parameters:
imgWidth- Width of the new imageimgHeight- height of the new image- Returns:
- new image
-
-
DataMelt 3.0 © DataMelt by jWork.ORG