template struct cv::cudev::Avg

#include <reduce_to_vec.hpp>

template <typename T>
struct Avg: public cv::cudev::plus
{
    // typedefs

    typedef T work_type;

    // structs

    template <typename U>
    struct rebind;

    // methods

    static
    __device__ static __forceinline__ T
    initialValue();

    static
    __device__ static __forceinline__ T
    result(
        T r,
        float sz
        );
};

Inherited Members

public:
    // typedefs

    typedef _Arg1 first_argument_type;
    typedef _Result result_type;
    typedef _Arg2 second_argument_type;

    // methods

    __device__ __forceinline__ T
    operator()(
        typename TypeTraits<T>::parameter_type a,
        typename TypeTraits<T>::parameter_type b
        ) const;