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
7dd19f6d
Commit
7dd19f6d
authored
Apr 22, 2015
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3939 from paroj:fmtfix
parents
415a212d
b02fc039
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
out.cpp
modules/core/src/out.cpp
+3
-3
No files found.
modules/core/src/out.cpp
View file @
7dd19f6d
...
...
@@ -309,7 +309,7 @@ namespace cv
Ptr
<
Formatted
>
format
(
const
Mat
&
mtx
)
const
{
char
braces
[
5
]
=
{
'['
,
']'
,
'
\0
'
,
'['
,
']'
};
char
braces
[
5
]
=
{
'['
,
']'
,
'
,
'
,
'['
,
']'
};
if
(
mtx
.
cols
==
1
)
braces
[
0
]
=
braces
[
1
]
=
'\0'
;
return
makePtr
<
FormattedImpl
>
(
"["
,
"]"
,
mtx
,
&*
braces
,
...
...
@@ -327,11 +327,11 @@ namespace cv
{
"uint8"
,
"int8"
,
"uint16"
,
"int16"
,
"int32"
,
"float32"
,
"float64"
,
"uint64"
};
char
braces
[
5
]
=
{
'['
,
']'
,
'
\0
'
,
'['
,
']'
};
char
braces
[
5
]
=
{
'['
,
']'
,
'
,
'
,
'['
,
']'
};
if
(
mtx
.
cols
==
1
)
braces
[
0
]
=
braces
[
1
]
=
'\0'
;
return
makePtr
<
FormattedImpl
>
(
"array(["
,
cv
::
format
(
"], type='%s')"
,
numpyTypes
[
mtx
.
depth
()]),
mtx
,
&*
braces
,
cv
::
format
(
"],
d
type='%s')"
,
numpyTypes
[
mtx
.
depth
()]),
mtx
,
&*
braces
,
mtx
.
rows
==
1
||
!
multiline
,
false
,
mtx
.
depth
()
==
CV_64F
?
prec64f
:
prec32f
);
}
};
...
...
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