OpenCV  4.6.0
Open Source Computer Vision
Public Member Functions | Public Attributes | List of all members
cv::cudev::InRangeFunc< T, cn > Struct Template Reference

unary_function implementation of inRange More...

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

Inheritance diagram for cv::cudev::InRangeFunc< T, cn >:
cv::cudev::unary_function< MakeVec< T, cn >::type, uchar >

Public Member Functions

__host__ InRangeFunc (const Scalar &lowerb_scalar, const Scalar &upperb_scalar)
 Builds an InRangeFunc with the given lower and upper bound scalars. More...
 
__device__ uchar operator() (const typename MakeVec< T, cn >::type &src) const
 

Public Attributes

MakeVec< T, cn >::type lowerb
 
MakeVec< T, cn >::type upperb
 

Detailed Description

template<typename T, int cn>
struct cv::cudev::InRangeFunc< T, cn >

unary_function implementation of inRange

Intended to be used to create an Op for gridTransformUnary

Template Parameters
Tunderlying floating point/integral type
cntotal number of channels in the source image

Constructor & Destructor Documentation

◆ InRangeFunc()

template<typename T , int cn>
__host__ cv::cudev::InRangeFunc< T, cn >::InRangeFunc ( const Scalar lowerb_scalar,
const Scalar upperb_scalar 
)
inline

Builds an InRangeFunc with the given lower and upper bound scalars.

Parameters
lowerb_scalarinclusive lower bound
upperb_scalarinclusive upper bound

Member Function Documentation

◆ operator()()

template<typename T , int cn>
__device__ uchar cv::cudev::InRangeFunc< T, cn >::operator() ( const typename MakeVec< T, cn >::type &  src) const
inline

Member Data Documentation

◆ lowerb

template<typename T , int cn>
MakeVec<T, cn>::type cv::cudev::InRangeFunc< T, cn >::lowerb

◆ upperb

template<typename T , int cn>
MakeVec<T, cn>::type cv::cudev::InRangeFunc< T, cn >::upperb

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