#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 |
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.
typedef value_type cv::DataType< _Tp >::channel_type |
typedef _Tp cv::DataType< _Tp >::value_type |
typedef value_type cv::DataType< _Tp >::vec_type |
typedef value_type cv::DataType< _Tp >::work_type |