OpenCV  4.9.0
Open Source Computer Vision
Public Member Functions | List of all members
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 >

Functor that checks if a CUDA vector v is in the range between lowerb and upperb.

Implemented as a recursive template

Template Parameters
Tunderlying floating point/integral type
cntotal number of channels in the input arguments
inumber of the channel to check (will check this channel and lower)
Parameters
lowerbinclusive scalar lower bound, as a CUDA vector, e.g. a uchar3
upperbinclusive scalar upper bound, as a CUDA vector, e.g. a uchar3
vscalar 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: