boofcv.struct.image
Class InterleavedU16
- 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.InterleavedI16<InterleavedU16>
-
- boofcv.struct.image.InterleavedU16
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class InterleavedU16 extends InterleavedI16<InterleavedU16>
An image where the primitive type is an unsigned short.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class boofcv.struct.image.InterleavedI16
data
-
Fields inherited from class boofcv.struct.image.ImageInterleaved
numBands
-
-
Constructor Summary
Constructors Constructor and Description InterleavedU16()InterleavedU16(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 InterleavedU16_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.InterleavedI16
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
-
InterleavedU16
public InterleavedU16(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.
-
InterleavedU16
public InterleavedU16()
-
-
Method Detail
-
getDataType
public ImageDataType getDataType()
Description copied from class:ImageInterleavedReturns image type information- Overrides:
getDataTypein classInterleavedI16<InterleavedU16>- Returns:
- The type of image.
-
get_unsafe
public void get_unsafe(int x, int y, int[] storage)- Specified by:
get_unsafein classInterleavedInteger<InterleavedU16>
-
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<InterleavedU16>- Parameters:
x- pixel coordinate.y- pixel coordinate.band- which color band in the pixel- Returns:
- an intensity value.
-
_createNew
public InterleavedU16 _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<InterleavedU16>- Parameters:
imgWidth- Width of the new imageimgHeight- height of the new image- Returns:
- new image
-
-
DataMelt 3.0 © DataMelt by jWork.ORG