JeVoisBase
1.21
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
Go to the source code of this file.
Macros | |
#define | SPECIALIZE_PROMOTE_TRAIT(T_TYPE, T_PARAMS, T_ARGS) |
A macro for specializing promote_trait for template types. | |
Functions | |
template<class dst_type , class src_type > | |
dst_type | clamped_convert (src_type x) |
Convert safely from src_type to type dst_type, clamping if necessary. | |
template<class dst_type , class src_type > | |
dst_type | clamped_rounded_convert (src_type x) |
Convert safely from src_type to type dst_type, clamping and rounding as needed. | |
#define SPECIALIZE_PROMOTE_TRAIT | ( | T_TYPE, | |
T_PARAMS, | |||
T_ARGS | |||
) |
A macro for specializing promote_trait for template types.
See e.g. usage in PixelsTypes.H.
Definition at line 106 of file Promotions.H.
|
inline |
Convert safely from src_type to type dst_type, clamping if necessary.
Definition at line 333 of file Promotions.H.
|
inline |
Convert safely from src_type to type dst_type, clamping and rounding as needed.
Definition at line 341 of file Promotions.H.