| OpenCV 5.0.0alpha Open Source Computer Vision

Loading...
Searching...
No Matches
Public Member Functions | List of all members
cv::cudev::InRangeComparator< T, cn, i > Struct Template Reference
CUDA-accelerated Computer Vision » Device layer

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

`#include <opencv2/cudev/functional/functional.hpp>`

Collaboration diagram for cv::cudev::InRangeComparator< T, cn, i >:

## 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

  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