public class ConvertBitmap
extends java.lang.Object
| Constructor and Description |
|---|
ConvertBitmap() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends boofcv.struct.image.ImageBase<T>> |
bitmapToBoof(android.graphics.Bitmap input,
T output,
byte[] storage)
Converts a
Bitmap into a BoofCV image. |
static boofcv.struct.image.GrayF32 |
bitmapToGray(android.graphics.Bitmap input,
boofcv.struct.image.GrayF32 output,
byte[] storage)
Converts Bitmap image into GrayF32.
|
static boofcv.struct.image.GrayU8 |
bitmapToGray(android.graphics.Bitmap input,
boofcv.struct.image.GrayU8 output,
byte[] storage)
Converts Bitmap image into GrayU8.
|
static <T extends boofcv.struct.image.ImageGray<T>> |
bitmapToGray(android.graphics.Bitmap input,
T output,
java.lang.Class<T> imageType,
byte[] storage)
Converts Bitmap image into a single band image of arbitrary type.
|
static <T extends boofcv.struct.image.ImageGray<T>> |
bitmapToPlanar(android.graphics.Bitmap input,
boofcv.struct.image.Planar<T> output,
java.lang.Class<T> type,
byte[] storage)
Converts Bitmap image into Planar image of the appropriate type.
|
static void |
boofToBitmap(boofcv.alg.color.ColorFormat color,
boofcv.struct.image.ImageBase input,
android.graphics.Bitmap output,
byte[] storage) |
static void |
boofToBitmap(boofcv.struct.image.ImageBase input,
android.graphics.Bitmap output,
byte[] storage)
Converts many BoofCV image types into a Bitmap.
|
static byte[] |
declareStorage(android.graphics.Bitmap input,
byte[] storage)
Declares a storage array for the provided Bitmap image.
|
static android.graphics.Bitmap |
grayToBitmap(boofcv.struct.image.GrayF32 input,
android.graphics.Bitmap.Config config)
Converts GrayF32 into a new Bitmap.
|
static void |
grayToBitmap(boofcv.struct.image.GrayF32 input,
android.graphics.Bitmap output,
byte[] storage)
Converts ImageGray into Bitmap.
|
static android.graphics.Bitmap |
grayToBitmap(boofcv.struct.image.GrayU8 input,
android.graphics.Bitmap.Config config)
Converts GrayU8 into a new Bitmap.
|
static void |
grayToBitmap(boofcv.struct.image.GrayU8 input,
android.graphics.Bitmap output,
byte[] storage)
Converts ImageGray into Bitmap.
|
static void |
grayToBitmap(boofcv.struct.image.ImageGray input,
android.graphics.Bitmap output,
byte[] storage)
Converts ImageGray into Bitmap.
|
static <T extends boofcv.struct.image.ImageInterleaved<T>> |
interleavedToBitmap(T input,
android.graphics.Bitmap output,
byte[] storage)
Converts
ImageInterleaved image into Bitmap. |
static <T extends boofcv.struct.image.ImageInterleaved<T>> |
interleavedYuvToBitmap(T input,
android.graphics.Bitmap output,
byte[] storage) |
static <T extends boofcv.struct.image.ImageGray<T>> |
planarToBitmap(boofcv.struct.image.Planar<T> input,
android.graphics.Bitmap output,
byte[] storage)
Converts Planar image into Bitmap.
|
public static byte[] declareStorage(android.graphics.Bitmap input,
byte[] storage)
input - Bitmap image.storage - If not null then the array size will be checked, if too small a new array will be returned.public static <T extends boofcv.struct.image.ImageBase<T>> void bitmapToBoof(android.graphics.Bitmap input,
T output,
byte[] storage)
Bitmap into a BoofCV image. Type is determined at runtime.input - Bitmap image.output - Output image. Automatically resized to match input shape.storage - Byte array used for internal storage. If null it will be declared internally.public static <T extends boofcv.struct.image.ImageGray<T>> T bitmapToGray(android.graphics.Bitmap input,
T output,
java.lang.Class<T> imageType,
byte[] storage)
input - Input Bitmap image.output - Output single band image. If null a new one will be declared.imageType - Type of single band image.storage - Byte array used for internal storage. If null it will be declared internally.declareStorage(android.graphics.Bitmap, byte[])public static boofcv.struct.image.GrayU8 bitmapToGray(android.graphics.Bitmap input,
boofcv.struct.image.GrayU8 output,
byte[] storage)
input - Input Bitmap image.output - Output image. If null a new one will be declared.storage - Byte array used for internal storage. If null it will be declared internally.public static boofcv.struct.image.GrayF32 bitmapToGray(android.graphics.Bitmap input,
boofcv.struct.image.GrayF32 output,
byte[] storage)
input - Input Bitmap image.output - Output image. If null a new one will be declared.storage - Byte array used for internal storage. If null it will be declared internally.declareStorage(android.graphics.Bitmap, byte[])public static <T extends boofcv.struct.image.ImageGray<T>> boofcv.struct.image.Planar<T> bitmapToPlanar(android.graphics.Bitmap input,
boofcv.struct.image.Planar<T> output,
java.lang.Class<T> type,
byte[] storage)
input - Input Bitmap image.output - Output image. If null a new one will be declared.type - The type of internal single band image used in the Planar image.storage - Byte array used for internal storage. If null it will be declared internally.declareStorage(android.graphics.Bitmap, byte[])public static void boofToBitmap(boofcv.struct.image.ImageBase input,
android.graphics.Bitmap output,
byte[] storage)
input - Input BoofCV image.output - Output Bitmap image.storage - Byte array used for internal storage. If null it will be declared internally.declareStorage(android.graphics.Bitmap, byte[])public static void boofToBitmap(boofcv.alg.color.ColorFormat color,
boofcv.struct.image.ImageBase input,
android.graphics.Bitmap output,
byte[] storage)
public static void grayToBitmap(boofcv.struct.image.ImageGray input,
android.graphics.Bitmap output,
byte[] storage)
input - Input gray scale image.output - Output Bitmap image.storage - Byte array used for internal storage. If null it will be declared internally.declareStorage(android.graphics.Bitmap, byte[])public static void grayToBitmap(boofcv.struct.image.GrayU8 input,
android.graphics.Bitmap output,
byte[] storage)
input - Input gray scale image.output - Output Bitmap image.storage - Byte array used for internal storage. If null it will be declared internally.declareStorage(android.graphics.Bitmap, byte[])public static void grayToBitmap(boofcv.struct.image.GrayF32 input,
android.graphics.Bitmap output,
byte[] storage)
input - Input gray scale image.output - Output Bitmap image.storage - Byte array used for internal storage. If null it will be declared internally.declareStorage(android.graphics.Bitmap, byte[])public static <T extends boofcv.struct.image.ImageGray<T>> void planarToBitmap(boofcv.struct.image.Planar<T> input,
android.graphics.Bitmap output,
byte[] storage)
input - Input Planar image.output - Output Bitmap image.storage - Byte array used for internal storage. If null it will be declared internally.declareStorage(android.graphics.Bitmap, byte[])public static <T extends boofcv.struct.image.ImageInterleaved<T>> void interleavedToBitmap(T input,
android.graphics.Bitmap output,
byte[] storage)
ImageInterleaved image into Bitmap.input - Input Planar image.output - Output Bitmap image.storage - Byte array used for internal storage. If null it will be declared internally.declareStorage(android.graphics.Bitmap, byte[])public static <T extends boofcv.struct.image.ImageInterleaved<T>> void interleavedYuvToBitmap(T input,
android.graphics.Bitmap output,
byte[] storage)
public static android.graphics.Bitmap grayToBitmap(boofcv.struct.image.GrayU8 input,
android.graphics.Bitmap.Config config)
input - Input gray scale image.config - Type of Bitmap image to create.public static android.graphics.Bitmap grayToBitmap(boofcv.struct.image.GrayF32 input,
android.graphics.Bitmap.Config config)
input - Input gray scale image.config - Type of Bitmap image to create.