boofcv.core.image
Class GeneralizedImageOps
- java.lang.Object
-
- boofcv.core.image.GeneralizedImageOps
-
public class GeneralizedImageOps extends java.lang.ObjectOperations that return information about the specific image. Useful when writing highly abstracted code which is independent of the input image.
-
-
Constructor Summary
Constructors Constructor and Description GeneralizedImageOps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static <T extends ImageGray>
Tconvert(ImageGray<?> src, T dst, java.lang.Class<T> typeDst)Converts an image from one type to another type.static <T extends ImageBase>
TcreateImage(java.lang.Class<T> type, int width, int height, int numBands)static <T extends ImageInterleaved>
TcreateInterleaved(java.lang.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 ImageGray>
TcreateSingleBand(java.lang.Class<T> type, int width, int height)static <T extends ImageGray>
TcreateSingleBand(ImageDataType type, int width, int height)static doubleget(ImageBase img, int x, int y, int band)static doubleget(ImageGray img, int x, int y)static doubleget(ImageInterleaved img, int x, int y, int band)static <T extends ImageGray>
intgetNumBits(java.lang.Class<T> type)static booleanisFloatingPoint(java.lang.Class<?> imgType)static voidset(ImageGray img, int x, int y, double value)static voidsetB(ImageBase img, int x, int y, int band, double value)static voidsetM(ImageBase img, int x, int y, double... value)
-
-
-
Method Detail
-
convert
public static <T extends ImageGray> T convert(ImageGray<?> src, T dst, java.lang.Class<T> typeDst)
Converts an image from one type to another type. Creates a new image instance if an output is not provided.- Parameters:
src- Input image. Not modified.dst- Converted output image. If null a new one will be declared. Modified.typeDst- The type of output image.- Returns:
- Converted image.
-
isFloatingPoint
public static boolean isFloatingPoint(java.lang.Class<?> imgType)
-
get
public static double get(ImageGray img, int x, int y)
-
get
public static double get(ImageBase img, int x, int y, int band)
-
get
public static double get(ImageInterleaved img, int x, int y, int band)
-
createSingleBand
public static <T extends ImageGray> T createSingleBand(ImageDataType type, int width, int height)
-
createImage
public static <T extends ImageBase> T createImage(java.lang.Class<T> type, int width, int height, int numBands)
-
createSingleBand
public static <T extends ImageGray> T createSingleBand(java.lang.Class<T> type, int width, int height)
-
createInterleaved
public static <T extends ImageInterleaved> T createInterleaved(ImageDataType type, int width, int height, int numBands)
-
createInterleaved
public static <T extends ImageInterleaved> T createInterleaved(java.lang.Class<T> type, int width, int height, int numBands)
-
set
public static void set(ImageGray img, int x, int y, double value)
-
setM
public static void setM(ImageBase img, int x, int y, double... value)
-
setB
public static void setB(ImageBase img, int x, int y, int band, double value)
-
getNumBits
public static <T extends ImageGray> int getNumBits(java.lang.Class<T> type)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG