boofcv.core.encoding
Class ConvertYV12
- java.lang.Object
-
- boofcv.core.encoding.ConvertYV12
-
public class ConvertYV12 extends java.lang.ObjectYUV / YCbCr image format. The Y component is contained in the width*height block, followed by a (width/2)*(height/2) block for Cb and then a block of the same size for Cr.
-
-
Constructor Summary
Constructors Constructor and Description ConvertYV12()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidyu12ToBoof(byte[] data, int width, int height, ImageBase output)Converts a YU12 encoded byte array into a BoofCV formatted image.static GrayF32yu12ToGray(byte[] data, int width, int height, GrayF32 output)Converts an YV12 image into a gray scale F32 image.static GrayU8yu12ToGray(byte[] data, int width, int height, GrayU8 output)Converts an YV12 image into a gray scale U8 image.
-
-
-
Method Detail
-
yu12ToBoof
public static void yu12ToBoof(byte[] data, int width, int height, ImageBase output)Converts a YU12 encoded byte array into a BoofCV formatted image.- Parameters:
data- (input) YU12 byte arraywidth- (input) image widthheight- (input) image heightoutput- (output) BoofCV image
-
yu12ToGray
public static GrayU8 yu12ToGray(byte[] data, int width, int height, GrayU8 output)
Converts an YV12 image into a gray scale U8 image.- Parameters:
data- Input: YV12 image datawidth- Input: image widthheight- Input: image heightoutput- Output: Optional storage for output image. Can be null.- Returns:
- Gray scale image
-
yu12ToGray
public static GrayF32 yu12ToGray(byte[] data, int width, int height, GrayF32 output)
Converts an YV12 image into a gray scale F32 image.- Parameters:
data- Input: YV12 image datawidth- Input: image widthheight- Input: image heightoutput- Output: Optional storage for output image. Can be null.- Returns:
- Gray scale image
-
-
DataMelt 3.0 © DataMelt by jWork.ORG