Package boofcv.struct.image
Class ImageType<T extends ImageBase>
java.lang.Object
boofcv.struct.image.ImageType<T>
- All Implemented Interfaces:
Serializable
Specifies the type of image data structure.
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ImageType<InterleavedF32>
static final ImageType<InterleavedF64>
static final ImageType<InterleavedS16>
static final ImageType<InterleavedS32>
static final ImageType<InterleavedS64>
static final ImageType<InterleavedS8>
static final ImageType<InterleavedU16>
static final ImageType<InterleavedU8>
int
Number of bands in the image. -
Constructor Summary
ModifierConstructorDescriptionprotected
Create an image type with default valuesImageType
(ImageType.Family family, ImageDataType dataType, int numBands) -
Method Summary
Modifier and TypeMethodDescriptionT[]
createArray
(int length) Creates an array of the specified iamge typecreateImage
(int width, int height) Creates a new image.static Class
getImageClass
(ImageType.Family family, ImageDataType dataType) int
static <I extends ImageInterleaved<I>>
ImageType<I>il
(int numBands, ImageDataType type) static <I extends ImageInterleaved<I>>
ImageType<I>boolean
Returns true if the passed in ImageType is the same as this image typepl
(int numBands, ImageDataType type) void
Sets 'this' to be identical to 'o'single
(ImageDataType type) stringToType
(String name, int numBands) Converts the short hand string into an image type.toString()
-
Field Details
-
SB_U8
-
SB_S8
-
SB_U16
-
SB_S16
-
SB_S32
-
SB_S64
-
SB_F32
-
SB_F64
-
IL_U8
-
IL_S8
-
IL_U16
-
IL_S16
-
IL_S32
-
IL_S64
-
IL_F32
-
IL_F64
-
PL_U8
-
PL_S8
-
PL_U16
-
PL_S16
-
PL_S32
-
PL_S64
-
PL_F32
-
PL_F64
-
numBands
public int numBandsNumber of bands in the image. Single band images ignore this field.
-
-
Constructor Details
-
ImageType
-
ImageType
protected ImageType()Create an image type with default values
-
-
Method Details
-
single
-
single
-
pl
-
pl
-
il
-
il
-
stringToType
Converts the short hand string into an image type. A new instance is returned. -
getDataType
-
createImage
Creates a new image.- Parameters:
width
- Number of columns in the image.height
- Number of rows in the image.- Returns:
- New instance of the image.
-
createArray
Creates an array of the specified iamge type- Parameters:
length
- Number of elements in the array- Returns:
- array of image type
-
getNumBands
public int getNumBands() -
getFamily
-
getImageClass
-
getImageClass
-
toString
-
isSameType
Returns true if the passed in ImageType is the same as this image type -
setTo
Sets 'this' to be identical to 'o'- Parameters:
o
- What is to be copied.
-