Jetson Inference
DNN Vision Library
cudaRGB.h File Reference
#include "cudaUtility.h"
#include <stdint.h>

Go to the source code of this file.

Functions

8-bit RGB/BGR to Floating-point RGBA
cudaError_t cudaRGB8ToRGBA32 (uchar3 *input, float4 *output, size_t width, size_t height)
 Convert 8-bit fixed-point RGB image to 32-bit floating-point RGBA image. More...
 
cudaError_t cudaBGR8ToRGBA32 (uchar3 *input, float4 *output, size_t width, size_t height)
 Convert 8-bit fixed-point BGR image to 32-bit floating-point RGBA image. More...
 
Floating-point RGBA to 8-bit RGB/RGBA
cudaError_t cudaRGBA32ToRGB8 (float4 *input, uchar3 *output, size_t width, size_t height)
 Convert 32-bit floating-point RGBA image into 8-bit fixed-point RGB image. More...
 
cudaError_t cudaRGBA32ToRGB8 (float4 *input, uchar3 *output, size_t width, size_t height, const float2 &inputRange)
 Convert 32-bit floating-point RGBA image into 8-bit fixed-point RGB image, with the floating-point input range specified by the user. More...
 
cudaError_t cudaRGBA32ToRGBA8 (float4 *input, uchar4 *output, size_t width, size_t height)
 Convert 32-bit floating-point RGBA image into 8-bit fixed-point RGBA image. More...
 
cudaError_t cudaRGBA32ToRGBA8 (float4 *input, uchar4 *output, size_t width, size_t height, const float2 &inputRange)
 Convert 32-bit floating-point RGBA image into 8-bit fixed-point RGBA image, with the floating-point input range specified by the user. More...
 
Floating-point RGBA to 8-bit BGR/BGRA
cudaError_t cudaRGBA32ToBGR8 (float4 *input, uchar3 *output, size_t width, size_t height)
 Convert 32-bit floating-point RGBA image into 8-bit fixed-point BGR image. More...
 
cudaError_t cudaRGBA32ToBGR8 (float4 *input, uchar3 *output, size_t width, size_t height, const float2 &inputRange)
 Convert 32-bit floating-point RGBA image into 8-bit fixed-point BGR image, with the floating-point input range specified by the user. More...
 
cudaError_t cudaRGBA32ToBGRA8 (float4 *input, uchar4 *output, size_t width, size_t height)
 Convert 32-bit floating-point RGBA image into 8-bit fixed-point BGRA image. More...
 
cudaError_t cudaRGBA32ToBGRA8 (float4 *input, uchar4 *output, size_t width, size_t height, const float2 &inputRange)
 Convert 32-bit floating-point RGBA image into 8-bit fixed-point BGRA image, with the floating-point input range specified by the user. More...