Typedef nvcv::cuda::MakeType
Defined in File DropCast.hpp
Typedef Documentation
-
template<class T, int C, class = Require<HasTypeTraits<T>>>
using nvcv::cuda::MakeType = detail::MakeType_t<T, C> Metatype to make a type from a base type and number of components.
When number of components is zero, it yields the identity (regular C) type, and when it is between 1 and 4 it yields the CUDA compound type.
using RGB8Type = MakeType<unsigned char, 3>; // yields uchar3
Note
Note that T=char might yield uchar1..4 types when char is equal unsigned char, i.e. CHAR_MIN == 0.
- Template Parameters:
T – Base type to make the type from.
C – Number of components to make the type.