Loading...
Searching...
No Matches
cv::cudev::InRangeComparator< T, cn, i > Struct Template Reference
Functor that checks if a CUDA vector v is in the range between lowerb and upperb. More...
#include <opencv2/cudev/functional/functional.hpp>
Public Member Functions | |
__device__ bool | operator() (const typename MakeVec< T, cn >::type &lowerb, const typename MakeVec< T, cn >::type &upperb, const typename MakeVec< T, cn >::type &v) const |
Detailed Description
template<typename T, int cn, int i>
struct cv::cudev::InRangeComparator< T, cn, i >
struct cv::cudev::InRangeComparator< T, cn, i >
Functor that checks if a CUDA vector v is in the range between lowerb and upperb.
Implemented as a recursive template
- Template Parameters
-
T underlying floating point/integral type cn total number of channels in the input arguments i number of the channel to check (will check this channel and lower)
- Parameters
-
lowerb inclusive scalar lower bound, as a CUDA vector, e.g. a uchar3 upperb inclusive scalar upper bound, as a CUDA vector, e.g. a uchar3 v scalar to check, as a CUDA vector, e.g. a uchar3
Member Function Documentation
◆ operator()()
template<typename T , int cn, int i>
__device__ bool cv::cudev::InRangeComparator< T, cn, i >::operator() | ( | const typename MakeVec< T, cn >::type & | lowerb, |
const typename MakeVec< T, cn >::type & | upperb, | ||
const typename MakeVec< T, cn >::type & | v | ||
) | const |
The documentation for this struct was generated from the following file:
- opencv2/cudev/functional/functional.hpp