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> >
64
typedef
std::complex<_Tp> value_type;
65
typedef
value_type work_type;
66
typedef
_Tp channel_type;
68
enum
{ generic_type = 0,
69
depth = DataType<channel_type>::depth,
71
fmt = DataType<channel_type>::fmt + ((channels - 1) << 8),
72
type = CV_MAKETYPE(depth, channels) };
74
typedef
Vec<channel_type, channels> vec_type;
78std::ostream& operator << (std::ostream& out, Ptr<Formatted> fmtd)
81
for(
const
char* str = fmtd->next(); str; str = fmtd->next())
87std::ostream& operator << (std::ostream& out,
const
Mat& mtx)
89
return
out << Formatter::get()->format(mtx);
93std::ostream& operator << (std::ostream& out,
const
UMat& m)
95
return
out << m.getMat(ACCESS_READ);
98
template<
typename
_Tp>
static
inline
99std::ostream& operator << (std::ostream& out,
const
Complex<_Tp>& c)
101
return
out <<
"("
<< c.re <<
","
<< c.im <<
")";
104
template<
typename
_Tp>
static
inline
105std::ostream& operator << (std::ostream& out,
const
std::vector<Point_<_Tp> >& vec)
107
return
out << Formatter::get()->format(Mat(vec));
111
template<
typename
_Tp>
static
inline
112std::ostream& operator << (std::ostream& out,
const
std::vector<Point3_<_Tp> >& vec)
114
return
out << Formatter::get()->format(Mat(vec));
118
template<
typename
_Tp,
int
m,
int
n>
static
inline
119std::ostream& operator << (std::ostream& out,
const
Matx<_Tp, m, n>& matx)
121
return
out << Formatter::get()->format(Mat(matx));
124
template<
typename
_Tp>
static
inline
125std::ostream& operator << (std::ostream& out,
const
Point_<_Tp>& p)
127
out <<
"["
<< p.x <<
", "
<< p.y <<
"]";
131
template<
typename
_Tp>
static
inline
132std::ostream& operator << (std::ostream& out,
const
Point3_<_Tp>& p)
134
out <<
"["
<< p.x <<
", "
<< p.y <<
", "
<< p.z <<
"]";
138
template<
typename
_Tp,
int
n>
static
inline
139std::ostream& operator << (std::ostream& out,
const
Vec<_Tp, n>& vec)
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
161std::ostream& operator << (std::ostream& out,
const
Size_<_Tp>& size)
163
return
out <<
"["
<< size.width <<
" x "
<< size.height <<
"]";
166
template<
typename
_Tp>
static
inline
167std::ostream& operator << (std::ostream& out,
const
Rect_<_Tp>& rect)
169
return
out <<
"["
<< rect.width <<
" x "
<< rect.height <<
" from ("
<< rect.x <<
", "
<< rect.y <<
")]";
172
static
inline
std::ostream& operator << (std::ostream& out,
const
MatSize& msize)
174
int
i, dims = msize.dims();
175
for( i = 0; i < dims; i++ )
184
static
inline
std::ostream &operator<< (std::ostream &s,
cv::Range
&r)
186
return
s <<
"["
<< r.start <<
" : "
<< r.end <<
")";
192
#pragma warning( pop )
Template class specifying a continuous subsequence (slice) of a sequence.
Definition:
core/types.hpp:590
"black box" representation of the file storage associated with a file on disk.
Definition:
aruco.hpp:75
Definition:
traits.hpp:382