Jetson Inference
DNN Vision Library

CUDA device functions for sampling pixels with bilinear filtering. More...

Enumerations

enum  cudaFilterMode { FILTER_POINT, FILTER_LINEAR }
 Enumeration of interpolation filtering modes. More...
 
enum  cudaDataFormat { FORMAT_HWC, FORMAT_CHW, FORMAT_DEFAULT = FORMAT_HWC }
 Enumeration of image layout formats. More...
 

Functions

cudaFilterMode cudaFilterModeFromStr (const char *filter, cudaFilterMode default_value=FILTER_LINEAR)
 Parse a cudaFilterMode enum from a string. More...
 
const char * cudaFilterModeToStr (cudaFilterMode filter)
 Convert a cudaFilterMode enum to a string. More...
 

Detailed Description

CUDA device functions for sampling pixels with bilinear filtering.

Enumeration Type Documentation

◆ cudaDataFormat

Enumeration of image layout formats.

Enumerator
FORMAT_HWC 

Height * Width * Channels (packed format)

FORMAT_CHW 

Channels * Width * Height (DNN format)

Default format (HWC)

FORMAT_DEFAULT 

◆ cudaFilterMode

Enumeration of interpolation filtering modes.

See also
cudaFilterModeFromStr() and cudaFilterModeToStr()
Enumerator
FILTER_POINT 

Nearest-neighbor sampling.

FILTER_LINEAR 

Bilinear filtering.

Function Documentation

◆ cudaFilterModeFromStr()

cudaFilterMode cudaFilterModeFromStr ( const char *  filter,
cudaFilterMode  default_value = FILTER_LINEAR 
)

Parse a cudaFilterMode enum from a string.

Returns
The parsed cudaFilterMode, or default_value on error.

◆ cudaFilterModeToStr()

const char* cudaFilterModeToStr ( cudaFilterMode  filter)

Convert a cudaFilterMode enum to a string.