Jetson Inference
DNN Vision Library

Overlay images and vector shapes onto other images. More...

Functions

cudaError_t cudaOverlay (void *input, size_t inputWidth, size_t inputHeight, void *output, size_t outputWidth, size_t outputHeight, imageFormat format, int x, int y)
 Overlay the input image onto the output image at location (x,y) If the composted image doesn't entirely fit in the output, it will be cropped. More...
 
template<typename T >
cudaError_t cudaOverlay (T *input, size_t inputWidth, size_t inputHeight, T *output, size_t outputWidth, size_t outputHeight, int x, int y)
 Overlay the input image composted onto the output image at location (x,y) If the composted image doesn't entirely fit in the output, it will be cropped. More...
 
template<typename T >
cudaError_t cudaOverlay (T *input, const int2 &inputDims, T *output, const int2 &outputDims, int x, int y)
 Overlay the input image composted onto the output image at location (x,y) If the composted image doesn't entirely fit in the output, it will be cropped. More...
 
cudaError_t cudaRectFill (void *input, void *output, size_t width, size_t height, imageFormat format, float4 *rects, int numRects, const float4 &color)
 cudaRectFill More...
 
template<typename T >
cudaError_t cudaRectFill (T *input, T *output, size_t width, size_t height, float4 *rects, int numRects, const float4 &color)
 cudaRectFill More...
 

Detailed Description

Overlay images and vector shapes onto other images.

Function Documentation

◆ cudaOverlay() [1/3]

template<typename T >
cudaError_t cudaOverlay ( T *  input,
const int2 &  inputDims,
T *  output,
const int2 &  outputDims,
int  x,
int  y 
)

Overlay the input image composted onto the output image at location (x,y) If the composted image doesn't entirely fit in the output, it will be cropped.

If the images have an alpha channel, they will be alpha blended.

◆ cudaOverlay() [2/3]

template<typename T >
cudaError_t cudaOverlay ( T *  input,
size_t  inputWidth,
size_t  inputHeight,
T *  output,
size_t  outputWidth,
size_t  outputHeight,
int  x,
int  y 
)

Overlay the input image composted onto the output image at location (x,y) If the composted image doesn't entirely fit in the output, it will be cropped.

If the images have an alpha channel, they will be alpha blended.

◆ cudaOverlay() [3/3]

cudaError_t cudaOverlay ( void *  input,
size_t  inputWidth,
size_t  inputHeight,
void *  output,
size_t  outputWidth,
size_t  outputHeight,
imageFormat  format,
int  x,
int  y 
)

Overlay the input image onto the output image at location (x,y) If the composted image doesn't entirely fit in the output, it will be cropped.

If the images have an alpha channel, they will be alpha blended.

◆ cudaRectFill() [1/2]

template<typename T >
cudaError_t cudaRectFill ( T *  input,
T *  output,
size_t  width,
size_t  height,
float4 *  rects,
int  numRects,
const float4 &  color 
)

cudaRectFill

Deprecated:
please use the functions from cudaDraw.h instead

◆ cudaRectFill() [2/2]

cudaError_t cudaRectFill ( void *  input,
void *  output,
size_t  width,
size_t  height,
imageFormat  format,
float4 *  rects,
int  numRects,
const float4 &  color 
)

cudaRectFill

Deprecated:
please use the functions from cudaDraw.h instead