44 #ifndef OPENCV_CORE_CVSTDINL_HPP
45 #define OPENCV_CORE_CVSTDINL_HPP
54 #pragma warning( push )
55 #pragma warning( disable: 4127 )
61 template<
typename _Tp>
class DataType<
std::complex<_Tp> >
65 typedef value_type work_type;
66 typedef _Tp channel_type;
68 enum { generic_type = 0,
71 fmt = DataType<channel_type>::fmt + ((
channels - 1) << 8),
74 typedef Vec<channel_type, channels> vec_type;
81 for(
const char* str = fmtd->next(); str; str = fmtd->next())
98 template<
typename _Tp>
static inline
101 return out <<
"(" << c.re <<
"," << c.im <<
")";
104 template<
typename _Tp>
static inline
111 template<
typename _Tp>
static inline
118 template<
typename _Tp,
int m,
int n>
static inline
124 template<
typename _Tp>
static inline
127 out <<
"[" << p.x <<
", " << p.y <<
"]";
131 template<
typename _Tp>
static inline
134 out <<
"[" << p.x <<
", " << p.y <<
", " << p.z <<
"]";
138 template<
typename _Tp,
int n>
static inline
144 for (
int i = 0; i < n - 1; ++i) {
145 out << (int)vec[i] <<
", ";
147 out << (int)vec[n-1] <<
"]";
151 for (
int i = 0; i < n - 1; ++i) {
152 out << vec[i] <<
", ";
154 out << vec[n-1] <<
"]";
160 template<
typename _Tp>
static inline
166 template<
typename _Tp>
static inline
174 int i,
dims = msize.dims();
175 for( i = 0; i <
dims; i++ )
186 return s <<
"[" <<
r.start <<
" : " <<
r.end <<
")";
192 #pragma warning( pop )
Template class specifying a continuous subsequence (slice) of a sequence.
Definition: types.hpp:623
@ ACCESS_READ
Definition: mat.hpp:65
int int channels
Definition: core_c.h:100
CvRect rect
Definition: core_c.h:193
CvSize size
Definition: core_c.h:112
int int type
Definition: core_c.h:221
int depth
Definition: core_c.h:100
int dims
Definition: core_c.h:464
#define CV_32S
Definition: interface.h:77
#define CV_MAKETYPE(depth, cn)
Definition: interface.h:85
std::ostream & operator<<(std::ostream &, const DualQuat< _Tp > &)
CvRect r
Definition: imgproc_c.h:984
"black box" representation of the file storage associated with a file on disk.
Definition: calib3d.hpp:441
int width
Definition: types_c.h:835
int y
Definition: types_c.h:834
int x
Definition: types_c.h:833
int height
Definition: types_c.h:836
int width
Definition: types_c.h:1159
int height
Definition: types_c.h:1160
Definition: traits.hpp:382