public class ConvertYV12
extends java.lang.Object
| Constructor and Description |
|---|
ConvertYV12() |
| Modifier and Type | Method and Description |
|---|---|
static void |
yu12ToBoof(byte[] data,
int width,
int height,
ImageBase output)
Converts a YU12 encoded byte array into a BoofCV formatted image.
|
static GrayF32 |
yu12ToGray(byte[] data,
int width,
int height,
GrayF32 output)
Converts an YV12 image into a gray scale F32 image.
|
static GrayU8 |
yu12ToGray(byte[] data,
int width,
int height,
GrayU8 output)
Converts an YV12 image into a gray scale U8 image.
|
public static void yu12ToBoof(byte[] data,
int width,
int height,
ImageBase output)
data - (input) YU12 byte arraywidth - (input) image widthheight - (input) image heightoutput - (output) BoofCV imagepublic static GrayU8 yu12ToGray(byte[] data, int width, int height, GrayU8 output)
data - Input: YV12 image datawidth - Input: image widthheight - Input: image heightoutput - Output: Optional storage for output image. Can be null.public static GrayF32 yu12ToGray(byte[] data, int width, int height, GrayF32 output)
data - Input: YV12 image datawidth - Input: image widthheight - Input: image heightoutput - Output: Optional storage for output image. Can be null.