public class ConvertNV21
extends java.lang.Object
| Constructor and Description |
|---|
ConvertNV21() |
| Modifier and Type | Method and Description |
|---|---|
static void |
nv21ToBoof(byte[] data,
int width,
int height,
ImageBase output)
Converts a NV21 encoded byte array into a BoofCV formatted image.
|
static ImageFloat32 |
nv21ToGray(byte[] data,
int width,
int height,
ImageFloat32 output)
Converts an NV21 image into a gray scale F32 image.
|
static ImageUInt8 |
nv21ToGray(byte[] data,
int width,
int height,
ImageUInt8 output)
Converts an NV21 image into a gray scale U8 image.
|
static <T extends ImageSingleBand> |
nv21ToGray(byte[] data,
int width,
int height,
T output,
java.lang.Class<T> outputType)
Converts an NV21 image into a gray scale image.
|
static InterleavedF32 |
nv21ToInterleaved(byte[] data,
int width,
int height,
InterleavedF32 output)
Converts an NV21 image into a
InterleavedF32 RGB image. |
static InterleavedU8 |
nv21ToInterleaved(byte[] data,
int width,
int height,
InterleavedU8 output)
Converts an NV21 image into a
InterleavedU8 RGB image. |
static MultiSpectral<ImageFloat32> |
nv21ToMsRgb_F32(byte[] data,
int width,
int height,
MultiSpectral<ImageFloat32> output)
Converts an NV21 image into a
MultiSpectral RGB image with F32 bands. |
static MultiSpectral<ImageUInt8> |
nv21ToMsRgb_U8(byte[] data,
int width,
int height,
MultiSpectral<ImageUInt8> output)
Converts an NV21 image into a
MultiSpectral RGB image with U8 bands. |
static MultiSpectral<ImageFloat32> |
nv21ToMsYuv_F32(byte[] data,
int width,
int height,
MultiSpectral<ImageFloat32> output)
Converts an NV21 image into a
MultiSpectral YUV image with F32 bands. |
static MultiSpectral<ImageUInt8> |
nv21ToMsYuv_U8(byte[] data,
int width,
int height,
MultiSpectral<ImageUInt8> output)
Converts an NV21 image into a
MultiSpectral YUV image with U8 bands. |
static <T extends ImageSingleBand> |
nv21ToMsYuv(byte[] data,
int width,
int height,
MultiSpectral<T> output,
java.lang.Class<T> outputType)
Converts an NV21 image into a
MultiSpectral YUV image. |
public static void nv21ToBoof(byte[] data,
int width,
int height,
ImageBase output)
data - (input) NV21 byte arraywidth - (input) image widthheight - (input) image heightoutput - (output) BoofCV imagepublic static <T extends ImageSingleBand> T nv21ToGray(byte[] data, int width, int height, T output, java.lang.Class<T> outputType)
T - Output image typedata - Input: NV21 image datawidth - Input: NV21 image widthheight - Input: NV21 image heightoutput - Output: Optional storage for output image. Can be null.outputType - Output: Type of output imagepublic static ImageUInt8 nv21ToGray(byte[] data, int width, int height, ImageUInt8 output)
data - Input: NV21 image datawidth - Input: NV21 image widthheight - Input: NV21 image heightoutput - Output: Optional storage for output image. Can be null.public static ImageFloat32 nv21ToGray(byte[] data, int width, int height, ImageFloat32 output)
data - Input: NV21 image datawidth - Input: NV21 image widthheight - Input: NV21 image heightoutput - Output: Optional storage for output image. Can be null.public static <T extends ImageSingleBand> MultiSpectral<T> nv21ToMsYuv(byte[] data, int width, int height, MultiSpectral<T> output, java.lang.Class<T> outputType)
MultiSpectral YUV image.T - Output image typedata - Input: NV21 image datawidth - Input: NV21 image widthheight - Input: NV21 image heightoutput - Output: Optional storage for output image. Can be null.outputType - Output: Type of output imagepublic static MultiSpectral<ImageUInt8> nv21ToMsYuv_U8(byte[] data, int width, int height, MultiSpectral<ImageUInt8> output)
MultiSpectral YUV image with U8 bands.data - Input: NV21 image datawidth - Input: NV21 image widthheight - Input: NV21 image heightoutput - Output: Optional storage for output image. Can be null.public static MultiSpectral<ImageUInt8> nv21ToMsRgb_U8(byte[] data, int width, int height, MultiSpectral<ImageUInt8> output)
MultiSpectral RGB image with U8 bands.data - Input: NV21 image datawidth - Input: NV21 image widthheight - Input: NV21 image heightoutput - Output: Optional storage for output image. Can be null.public static InterleavedU8 nv21ToInterleaved(byte[] data, int width, int height, InterleavedU8 output)
InterleavedU8 RGB image.data - Input: NV21 image datawidth - Input: NV21 image widthheight - Input: NV21 image heightoutput - Output: Optional storage for output image. Can be null.public static MultiSpectral<ImageFloat32> nv21ToMsYuv_F32(byte[] data, int width, int height, MultiSpectral<ImageFloat32> output)
MultiSpectral YUV image with F32 bands.data - Input: NV21 image datawidth - Input: NV21 image widthheight - Input: NV21 image heightoutput - Output: Optional storage for output image. Can be null.public static MultiSpectral<ImageFloat32> nv21ToMsRgb_F32(byte[] data, int width, int height, MultiSpectral<ImageFloat32> output)
MultiSpectral RGB image with F32 bands.data - Input: NV21 image datawidth - Input: NV21 image widthheight - Input: NV21 image heightoutput - Output: Optional storage for output image. Can be null.public static InterleavedF32 nv21ToInterleaved(byte[] data, int width, int height, InterleavedF32 output)
InterleavedF32 RGB image.data - Input: NV21 image datawidth - Input: NV21 image widthheight - Input: NV21 image heightoutput - Output: Optional storage for output image. Can be null.