Package boofcv.core.image
Class GeneralizedImageOps
java.lang.Object
boofcv.core.image.GeneralizedImageOps
Operations that return information about the specific image. Useful when writing highly abstracted code which is independent of the input image.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
arrayElement
(Object array, int i, boolean signed) static <T> T
convertGenericToSpecificType
(Class<?> type) If an image is to be created then the generic type can't be used a specific one needs to be.static GrowArray
createGrowArray
(ImageType<?> type) static <T extends ImageBase>
TcreateImage
(Class<T> type, int width, int height, int numBands) static <T extends ImageInterleaved>
TcreateInterleaved
(ImageDataType type, int width, int height, int numBands) static <T extends ImageInterleaved<T>>
TcreateInterleaved
(Class<T> type, int width, int height, int numBands) static <T extends ImageGray>
TcreateSingleBand
(ImageDataType type, int width, int height) static <T extends ImageGray<T>>
TcreateSingleBand
(Class<T> type, int width, int height) static double
get
(ImageBorder img, int x, int y) static double
static double
static double
get
(ImageInterleaved img, int x, int y, int band) static Object
static <T extends ImageGray<T>>
intgetNumBits
(Class<T> type) static boolean
isFloatingPoint
(Class<?> imgType) static void
static void
static void
-
Constructor Details
-
GeneralizedImageOps
public GeneralizedImageOps()
-
-
Method Details
-
isFloatingPoint
-
get
-
get
-
get
-
get
-
createSingleBand
-
createImage
-
createSingleBand
-
createInterleaved
public static <T extends ImageInterleaved> T createInterleaved(ImageDataType type, int width, int height, int numBands) -
createInterleaved
public static <T extends ImageInterleaved<T>> T createInterleaved(Class<T> type, int width, int height, int numBands) -
set
-
setM
-
setB
-
getNumBits
-
createGrowArray
-
convertGenericToSpecificType
If an image is to be created then the generic type can't be used a specific one needs to be. An arbitrary specific image type is returned here. -
getArray
-
arrayElement
-