Package boofcv.core.encoding
Class ConvertYV12
java.lang.Object
boofcv.core.encoding.ConvertYV12
YUV / 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
ConvertYV12
public ConvertYV12()
-
-
Method Details
-
yu12ToBoof
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
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
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
-