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 ImageFloat32 |
yu12ToGray(byte[] data,
int width,
int height,
ImageFloat32 output)
Converts an YV12 image into a gray scale F32 image.
|
static ImageUInt8 |
yu12ToGray(byte[] data,
int width,
int height,
ImageUInt8 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 ImageUInt8 yu12ToGray(byte[] data, int width, int height, ImageUInt8 output)
data - Input: YV12 image datawidth - Input: image widthheight - Input: image heightoutput - Output: Optional storage for output image. Can be null.public static ImageFloat32 yu12ToGray(byte[] data, int width, int height, ImageFloat32 output)
data - Input: YV12 image datawidth - Input: image widthheight - Input: image heightoutput - Output: Optional storage for output image. Can be null.