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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublearrayElement(Object array, int i, boolean signed) static <T> TconvertGenericToSpecificType(Class<?> type) If an image is to be created then the generic type can't be used a specific one needs to be.static GrowArraycreateGrowArray(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 doubleget(ImageBorder img, int x, int y) static doublestatic doublestatic doubleget(ImageInterleaved img, int x, int y, int band) static Objectstatic <T extends ImageGray<T>>
intgetNumBits(Class<T> type) static booleanisFloatingPoint(Class<?> imgType) static voidstatic voidstatic 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
-