Jetson Inference
DNN Vision Library
cudaBayer.h File Reference
#include "cudaUtility.h"
#include "imageFormat.h"

Go to the source code of this file.

Functions

8-bit Bayer to RGB/RGBA
See also
cudaConvertColor() from cudaColorspace.h for automated format conversion
cudaError_t cudaBayerToRGB (uint8_t *input, uchar3 *output, size_t width, size_t height, imageFormat format)
 Demosaick an 8-bit Bayer image to uchar3 RGB. More...
 
cudaError_t cudaBayerToRGBA (uint8_t *input, uchar3 *output, size_t width, size_t height, imageFormat format)
 Demosaick an 8-bit Bayer image to uchar4 RGBA. More...
 

Function Documentation

◆ cudaBayerToRGB()

cudaError_t cudaBayerToRGB ( uint8_t *  input,
uchar3 *  output,
size_t  width,
size_t  height,
imageFormat  format 
)

Demosaick an 8-bit Bayer image to uchar3 RGB.

@params format the Bayer pattern of the input image, should be one of:
IMAGE_BAYER_BGGR, IMAGE_BAYER_GBRG, IMAGE_BAYER_GRBG, IMAGE_BAYER_RGGB

◆ cudaBayerToRGBA()

cudaError_t cudaBayerToRGBA ( uint8_t *  input,
uchar3 *  output,
size_t  width,
size_t  height,
imageFormat  format 
)

Demosaick an 8-bit Bayer image to uchar4 RGBA.

@params format the Bayer pattern of the input image, should be one of:
IMAGE_BAYER_BGGR, IMAGE_BAYER_GBRG, IMAGE_BAYER_GRBG, IMAGE_BAYER_RGGB