OpenCV  2.4.13.7
Open Source Computer Vision
cv::DataType< _Tp > Class Template Reference

#include <core.hpp>

Public Types

enum  {
  generic_type = 1, depth = -1, channels = 1, fmt =0,
  type = CV_MAKETYPE(depth, channels)
}
 
typedef _Tp value_type
 
typedef value_type work_type
 
typedef value_type channel_type
 
typedef value_type vec_type
 

Detailed Description

template<typename _Tp>
class cv::DataType< _Tp >

Informative template class for OpenCV "scalars".

The class is specialized for each primitive numerical type supported by OpenCV (such as unsigned char or float), as well as for more complex types, like cv::Complex<>, std::complex<>, cv::Vec<> etc. The common property of all such types (called "scalars", do not confuse it with cv::Scalar_) is that each of them is basically a tuple of numbers of the same type. Each "scalar" can be represented by the depth id (CV_8U ... CV_64F) and the number of channels. OpenCV matrices, 2D or nD, dense or sparse, can store "scalars", as long as the number of channels does not exceed CV_CN_MAX.

Member Typedef Documentation

§ channel_type

template<typename _Tp>
typedef value_type cv::DataType< _Tp >::channel_type

§ value_type

template<typename _Tp>
typedef _Tp cv::DataType< _Tp >::value_type

§ vec_type

template<typename _Tp>
typedef value_type cv::DataType< _Tp >::vec_type

§ work_type

template<typename _Tp>
typedef value_type cv::DataType< _Tp >::work_type

Member Enumeration Documentation

§ anonymous enum

template<typename _Tp>
anonymous enum
Enumerator
generic_type 
depth 
channels 
fmt 
type 

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