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

Functor that copies a cv::Scalar into a CUDA vector, e.g. a uchar3. More...

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

Public Member Functions

void operator() (const Scalar &in, typename MakeVec< T, cn >::type &out) const
 

Detailed Description

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

Functor that copies a cv::Scalar into a CUDA vector, e.g. a uchar3.

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
incv::Scalar to copy from
outCUDA vector to copy into, e.g. a uchar3

Member Function Documentation

◆ operator()()

template<typename T , int cn, int i>
void cv::cudev::InRangeCopier< T, cn, i >::operator() ( const Scalar in,
typename MakeVec< T, cn >::type &  out 
) const

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