template class cv::DataDepth

Overview

A helper class for cv::DataType. Moreā€¦

#include <traits.hpp>

template <typename _Tp>
class DataDepth
{
public:
    // enums

    enum
    {
        value = DataType<_Tp>::depth,
        fmt   = DataType<_Tp>::fmt,
    };
};

Detailed Documentation

A helper class for cv::DataType.

The class is specialized for each fundamental numerical data type supported by OpenCV. It provides DataDepth<T>::value constant.