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

Go to the source code of this file.

Functions

8-bit grayscale to floating-point grayscale (and vice versa)
See also
cudaConvertColor() from cudaColorspace.h for automated format conversion
cudaError_t cudaGray8ToGray32 (uint8_t *input, float *output, size_t width, size_t height)
 Convert uint8 grayscale image into float grayscale. More...
 
cudaError_t cudaGray32ToGray8 (float *input, uint8_t *output, size_t width, size_t height, const float2 &pixelRange=make_float2(0, 255))
 Convert float grayscale image into uint8 grayscale. More...
 
RGB/BGR to 8-bit grayscale
See also
cudaConvertColor() from cudaColorspace.h for automated format conversion
cudaError_t cudaRGB8ToGray8 (uchar3 *input, uint8_t *output, size_t width, size_t height, bool swapRedBlue=false)
 Convert uchar3 RGB/BGR image into uint8 grayscale. More...
 
cudaError_t cudaRGBA8ToGray8 (uchar4 *input, uint8_t *output, size_t width, size_t height, bool swapRedBlue=false)
 Convert uchar4 RGBA/BGRA image into uint8 grayscale. More...
 
cudaError_t cudaRGB32ToGray8 (float3 *input, uint8_t *output, size_t width, size_t height, bool swapRedBlue=false, const float2 &pixelRange=make_float2(0, 255))
 Convert float3 RGB/BGR image into uint8 grayscale. More...
 
cudaError_t cudaRGBA32ToGray8 (float4 *input, uint8_t *output, size_t width, size_t height, bool swapRedBlue=false, const float2 &pixelRange=make_float2(0, 255))
 Convert float4 RGBA/BGRA image into uint8 grayscale. More...
 
RGB/BGR to floating-point grayscale
See also
cudaConvertColor() from cudaColorspace.h for automated format conversion
cudaError_t cudaRGB8ToGray32 (uchar3 *input, float *output, size_t width, size_t height, bool swapRedBlue=false)
 Convert uchar3 RGB/BGR image into float grayscale. More...
 
cudaError_t cudaRGBA8ToGray32 (uchar4 *input, float *output, size_t width, size_t height, bool swapRedBlue=false)
 Convert uchar4 RGBA/BGRA image into float grayscale. More...
 
cudaError_t cudaRGB32ToGray32 (float3 *input, float *output, size_t width, size_t height, bool swapRedBlue=false)
 Convert float3 RGB/BGR image into float grayscale. More...
 
cudaError_t cudaRGBA32ToGray32 (float4 *input, float *output, size_t width, size_t height, bool swapRedBlue=false)
 Convert float4 RGB/BGR image into float grayscale. More...
 
8-bit grayscale to RGB/BGR
See also
cudaConvertColor() from cudaColorspace.h for automated format conversion
cudaError_t cudaGray8ToRGB8 (uint8_t *input, uchar3 *output, size_t width, size_t height)
 Convert uint8 grayscale image into uchar3 RGB/BGR. More...
 
cudaError_t cudaGray8ToRGBA8 (uint8_t *input, uchar4 *output, size_t width, size_t height)
 Convert uint8 grayscale image into uchar4 RGB/BGR. More...
 
cudaError_t cudaGray8ToRGB32 (uint8_t *input, float3 *output, size_t width, size_t height)
 Convert uint8 grayscale image into float3 RGB/BGR. More...
 
cudaError_t cudaGray8ToRGBA32 (uint8_t *input, float4 *output, size_t width, size_t height)
 Convert uint8 grayscale image into float4 RGB/BGR. More...
 
Floating-point grayscale to RGB/BGR
See also
cudaConvertColor() from cudaColorspace.h for automated format conversion
cudaError_t cudaGray32ToRGB8 (float *input, uchar3 *output, size_t width, size_t height, const float2 &pixelRange=make_float2(0, 255))
 Convert float grayscale image into uchar3 RGB/BGR. More...
 
cudaError_t cudaGray32ToRGBA8 (float *input, uchar4 *output, size_t width, size_t height, const float2 &pixelRange=make_float2(0, 255))
 Convert float grayscale image into uchar4 RGB/BGR. More...
 
cudaError_t cudaGray32ToRGB32 (float *input, float3 *output, size_t width, size_t height)
 Convert float grayscale image into float3 RGB/BGR. More...
 
cudaError_t cudaGray32ToRGBA32 (float *input, float4 *output, size_t width, size_t height)
 Convert float grayscale image into float4 RGB/BGR. More...