nndeploy C++ API  0.2.0
nndeploy C++ API
Classes | Functions
nndeploy::preprocess Namespace Reference

Classes

class  BatchPreprocess
 
class  ConvertTo
 
class  ConvertToParam
 
class  CropParam
 
class  CvtcolorParam
 前处理通常由如下算子组合排列 cvtcolor resize padding warp_affine crop Normlize transpose dynamic_shape More...
 
class  CvtNormTrans
 
class  CvtNormTransParam
 
class  CvtResizeCropNormTrans
 
class  CvtResizeCropNormTransParam
 组合的预处理 More...
 
class  CvtResizeNormTrans
 
class  CvtResizeNormTransParam
 
class  CvtResizePadNormTrans
 
class  CvtResizePadNormTransParam
 组合的预处理 More...
 
class  DynamicShapeParam
 
class  NormlizeParam
 
class  OpenCvConvert
 
class  OpenCvUtil
 
class  PaddingParam
 
class  ResizeParam
 
class  TransposeParam
 
class  WarpAffineCvtNormTrans
 
class  WarpAffineCvtNormTransParam
 组合的预处理 More...
 

Functions

int getChannelByPixelType (base::PixelType pixel_type)
 
template<typename T >
void normalizeBfp16C1 (const T *__restrict src, void *dst, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T >
void normalizeBfp16C2 (const T *__restrict src, void *dst, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T >
void normalizeBfp16C3 (const T *__restrict src, void *dst, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T >
void normalizeBfp16C4 (const T *__restrict src, void *dst, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T >
void normalizeBfp16CN (const T *__restrict src, void *dst, const int c, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T1 , typename T2 >
void normalizeC1 (const T1 *__restrict src, T2 *__restrict dst, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T1 , typename T2 >
void normalizeC2 (const T1 *__restrict src, T2 *__restrict dst, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T1 , typename T2 >
void normalizeC3 (const T1 *__restrict src, T2 *__restrict dst, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T1 , typename T2 >
void normalizeC4 (const T1 *__restrict src, T2 *__restrict dst, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T1 , typename T2 >
void normalizeCN (const T1 *__restrict src, T2 *__restrict dst, const int c, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T >
void normalizeFp16C1 (const T *__restrict src, void *dst, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T >
void normalizeFp16C2 (const T *__restrict src, void *dst, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T >
void normalizeFp16C3 (const T *__restrict src, void *dst, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T >
void normalizeFp16C4 (const T *__restrict src, void *dst, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T >
void normalizeFp16CN (const T *__restrict src, void *dst, const int c, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T >
void normalizeFp32C1 (const T *__restrict src, float *__restrict dst, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T >
void normalizeFp32C2 (const T *__restrict src, float *__restrict dst, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T >
void normalizeFp32C3 (const T *__restrict src, float *__restrict dst, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T >
void normalizeFp32C4 (const T *__restrict src, float *__restrict dst, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 
template<typename T >
void normalizeFp32CN (const T *__restrict src, float *__restrict dst, const int c, size_t size, const float *__restrict scale, const float *__restrict mean, const float *__restrict std)
 

Function Documentation

◆ getChannelByPixelType()

int nndeploy::preprocess::getChannelByPixelType ( base::PixelType  pixel_type)

◆ normalizeBfp16C1()

template<typename T >
void nndeploy::preprocess::normalizeBfp16C1 ( const T *__restrict  src,
void *  dst,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 118 of file util.h.

Here is the call graph for this function:

◆ normalizeBfp16C2()

template<typename T >
void nndeploy::preprocess::normalizeBfp16C2 ( const T *__restrict  src,
void *  dst,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 133 of file util.h.

Here is the call graph for this function:

◆ normalizeBfp16C3()

template<typename T >
void nndeploy::preprocess::normalizeBfp16C3 ( const T *__restrict  src,
void *  dst,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 148 of file util.h.

Here is the call graph for this function:

◆ normalizeBfp16C4()

template<typename T >
void nndeploy::preprocess::normalizeBfp16C4 ( const T *__restrict  src,
void *  dst,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 166 of file util.h.

Here is the call graph for this function:

◆ normalizeBfp16CN()

template<typename T >
void nndeploy::preprocess::normalizeBfp16CN ( const T *__restrict  src,
void *  dst,
const int  c,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 185 of file util.h.

Here is the call graph for this function:

◆ normalizeC1()

template<typename T1 , typename T2 >
void nndeploy::preprocess::normalizeC1 ( const T1 *__restrict  src,
T2 *__restrict  dst,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 284 of file util.h.

◆ normalizeC2()

template<typename T1 , typename T2 >
void nndeploy::preprocess::normalizeC2 ( const T1 *__restrict  src,
T2 *__restrict  dst,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 294 of file util.h.

◆ normalizeC3()

template<typename T1 , typename T2 >
void nndeploy::preprocess::normalizeC3 ( const T1 *__restrict  src,
T2 *__restrict  dst,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 305 of file util.h.

◆ normalizeC4()

template<typename T1 , typename T2 >
void nndeploy::preprocess::normalizeC4 ( const T1 *__restrict  src,
T2 *__restrict  dst,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 319 of file util.h.

◆ normalizeCN()

template<typename T1 , typename T2 >
void nndeploy::preprocess::normalizeCN ( const T1 *__restrict  src,
T2 *__restrict  dst,
const int  c,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 334 of file util.h.

◆ normalizeFp16C1()

template<typename T >
void nndeploy::preprocess::normalizeFp16C1 ( const T *__restrict  src,
void *  dst,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 28 of file util.h.

Here is the call graph for this function:

◆ normalizeFp16C2()

template<typename T >
void nndeploy::preprocess::normalizeFp16C2 ( const T *__restrict  src,
void *  dst,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 42 of file util.h.

Here is the call graph for this function:

◆ normalizeFp16C3()

template<typename T >
void nndeploy::preprocess::normalizeFp16C3 ( const T *__restrict  src,
void *  dst,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 57 of file util.h.

Here is the call graph for this function:

◆ normalizeFp16C4()

template<typename T >
void nndeploy::preprocess::normalizeFp16C4 ( const T *__restrict  src,
void *  dst,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 75 of file util.h.

Here is the call graph for this function:

◆ normalizeFp16CN()

template<typename T >
void nndeploy::preprocess::normalizeFp16CN ( const T *__restrict  src,
void *  dst,
const int  c,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 94 of file util.h.

Here is the call graph for this function:

◆ normalizeFp32C1()

template<typename T >
void nndeploy::preprocess::normalizeFp32C1 ( const T *__restrict  src,
float *__restrict  dst,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 209 of file util.h.

◆ normalizeFp32C2()

template<typename T >
void nndeploy::preprocess::normalizeFp32C2 ( const T *__restrict  src,
float *__restrict  dst,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 220 of file util.h.

◆ normalizeFp32C3()

template<typename T >
void nndeploy::preprocess::normalizeFp32C3 ( const T *__restrict  src,
float *__restrict  dst,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 232 of file util.h.

◆ normalizeFp32C4()

template<typename T >
void nndeploy::preprocess::normalizeFp32C4 ( const T *__restrict  src,
float *__restrict  dst,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 247 of file util.h.

◆ normalizeFp32CN()

template<typename T >
void nndeploy::preprocess::normalizeFp32CN ( const T *__restrict  src,
float *__restrict  dst,
const int  c,
size_t  size,
const float *__restrict  scale,
const float *__restrict  mean,
const float *__restrict  std 
)

Definition at line 263 of file util.h.