Struct cv::cudev::InRangeComparator#

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

Collaboration diagram for cv::cudev::InRangeComparator:

cv::cudev::InRangeComparator< T, cn, i > Node1 cv::cudev::InRangeComparator < T, cn, i >   + operator()()

cv::cudev::InRangeComparator< T, cn, i > Node1 cv::cudev::InRangeComparator < T, cn, i >   + operator()()

Detailed Description#

template<typename T, int cn, int i>
struct InRangeComparator

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)

Param lowerb:

inclusive scalar lower bound, as a CUDA vector, e.g. a uchar3

Param upperb:

inclusive scalar upper bound, as a CUDA vector, e.g. a uchar3

Param v:

scalar to check, as a CUDA vector, e.g. a uchar3

Member Function Documentation#

operator()()#

bool cv::cudev::InRangeComparator::operator()(
const typename MakeVec< T, cn >::type & lowerb,
const typename MakeVec< T, cn >::type & upperb,
const typename MakeVec< T, cn >::type & v )

Source file#

The documentation for this struct was generated from the following file: