Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
d1d6ce63
Commit
d1d6ce63
authored
Oct 22, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #48 from kazuki-ma/2430_ostream_24
parents
eea6fe8e
72c93dab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
17 deletions
+54
-17
operations.hpp
modules/core/include/opencv2/core/operations.hpp
+54
-17
No files found.
modules/core/include/opencv2/core/operations.hpp
View file @
d1d6ce63
...
...
@@ -3780,23 +3780,6 @@ struct CV_EXPORTS Formatted
vector
<
int
>
params
;
};
/** Writes a point to an output stream in Matlab notation
*/
template
<
typename
_Tp
>
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
Point_
<
_Tp
>&
p
)
{
out
<<
"["
<<
p
.
x
<<
", "
<<
p
.
y
<<
"]"
;
return
out
;
}
/** Writes a point to an output stream in Matlab notation
*/
template
<
typename
_Tp
>
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
Point3_
<
_Tp
>&
p
)
{
out
<<
"["
<<
p
.
x
<<
", "
<<
p
.
y
<<
", "
<<
p
.
z
<<
"]"
;
return
out
;
}
static
inline
Formatted
format
(
const
Mat
&
mtx
,
const
char
*
fmt
,
const
vector
<
int
>&
params
=
vector
<
int
>
())
{
...
...
@@ -3858,6 +3841,60 @@ template<typename _Tp> static inline std::ostream& operator << (std::ostream& ou
}
/** Writes a Matx to an output stream.
*/
template
<
typename
_Tp
,
int
m
,
int
n
>
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
Matx
<
_Tp
,
m
,
n
>&
matx
)
{
out
<<
cv
::
Mat
(
matx
);
return
out
;
}
/** Writes a point to an output stream in Matlab notation
*/
template
<
typename
_Tp
>
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
Point_
<
_Tp
>&
p
)
{
out
<<
"["
<<
p
.
x
<<
", "
<<
p
.
y
<<
"]"
;
return
out
;
}
/** Writes a point to an output stream in Matlab notation
*/
template
<
typename
_Tp
>
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
Point3_
<
_Tp
>&
p
)
{
out
<<
"["
<<
p
.
x
<<
", "
<<
p
.
y
<<
", "
<<
p
.
z
<<
"]"
;
return
out
;
}
/** Writes a Vec to an output stream. Format example : [10, 20, 30]
*/
template
<
typename
_Tp
,
int
n
>
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
Vec
<
_Tp
,
n
>&
vec
)
{
out
<<
"["
;
for
(
int
i
=
0
;
i
<
n
-
1
;
++
i
)
{
out
<<
vec
[
i
]
<<
", "
;
}
out
<<
vec
[
n
-
1
]
<<
"]"
;
return
out
;
}
/** Writes a Size_ to an output stream. Format example : [640 x 480]
*/
template
<
typename
_Tp
>
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
Size_
<
_Tp
>&
size
)
{
out
<<
"["
<<
size
.
width
<<
" x "
<<
size
.
height
<<
"]"
;
return
out
;
}
/** Writes a Rect_ to an output stream. Format example : [640 x 480 from (10, 20)]
*/
template
<
typename
_Tp
>
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
Rect_
<
_Tp
>&
rect
)
{
out
<<
"["
<<
rect
.
width
<<
" x "
<<
rect
.
height
<<
" from ("
<<
rect
.
x
<<
", "
<<
rect
.
y
<<
")]"
;
return
out
;
}
template
<
typename
_Tp
>
inline
Ptr
<
_Tp
>
Algorithm
::
create
(
const
string
&
name
)
{
return
_create
(
name
).
ptr
<
_Tp
>
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment