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
2f01930e
Commit
2f01930e
authored
8 years ago
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7218 from savuor:fix2.4/copyTo
parents
4bccd9a9
be7c924e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
20 deletions
+27
-20
precomp.hpp
modules/core/src/precomp.hpp
+27
-20
No files found.
modules/core/src/precomp.hpp
View file @
2f01930e
...
...
@@ -127,39 +127,46 @@ template<typename T> struct OpMax
T
operator
()(
const
T
a
,
const
T
b
)
const
{
return
std
::
max
(
a
,
b
);
}
};
inline
Size
getContinuousSize
(
const
Mat
&
m1
,
int
widthScale
=
1
)
inline
Size
getContinuousSize
_
(
int
flags
,
int
cols
,
int
rows
,
int
widthScale
)
{
return
m1
.
isContinuous
()
?
Size
(
m1
.
cols
*
m1
.
rows
*
widthScale
,
1
)
:
Size
(
m1
.
cols
*
widthScale
,
m1
.
rows
);
int64
sz
=
(
int64
)
cols
*
rows
*
widthScale
;
return
(
flags
&
Mat
::
CONTINUOUS_FLAG
)
!=
0
&&
(
int
)
sz
==
sz
?
Size
((
int
)
sz
,
1
)
:
Size
(
cols
*
widthScale
,
rows
);
}
inline
Size
getContinuousSize
(
const
Mat
&
m1
,
const
Mat
&
m2
,
int
widthScale
=
1
)
inline
Size
getContinuousSize
(
const
Mat
&
m1
,
int
widthScale
=
1
)
{
return
(
m1
.
flags
&
m2
.
flags
&
Mat
::
CONTINUOUS_FLAG
)
!=
0
?
Size
(
m1
.
cols
*
m1
.
rows
*
widthScale
,
1
)
:
Size
(
m1
.
cols
*
widthScale
,
m1
.
rows
);
return
getContinuousSize_
(
m1
.
flags
,
m1
.
cols
,
m1
.
rows
,
widthScale
);
}
inline
Size
getContinuousSize
(
const
Mat
&
m1
,
const
Mat
&
m2
,
const
Mat
&
m3
,
int
widthScale
=
1
)
inline
Size
getContinuousSize
(
const
Mat
&
m1
,
const
Mat
&
m2
,
int
widthScale
=
1
)
{
return
(
m1
.
flags
&
m2
.
flags
&
m3
.
flags
&
Mat
::
CONTINUOUS_FLAG
)
!=
0
?
Size
(
m1
.
cols
*
m1
.
rows
*
widthScale
,
1
)
:
Size
(
m1
.
cols
*
widthScale
,
m1
.
rows
);
return
getContinuousSize_
(
m1
.
flags
&
m2
.
flags
,
m1
.
cols
,
m1
.
rows
,
widthScale
);
}
inline
Size
getContinuousSize
(
const
Mat
&
m1
,
const
Mat
&
m2
,
const
Mat
&
m3
,
const
Mat
&
m4
,
int
widthScale
=
1
)
inline
Size
getContinuousSize
(
const
Mat
&
m1
,
const
Mat
&
m2
,
const
Mat
&
m3
,
int
widthScale
=
1
)
{
return
(
m1
.
flags
&
m2
.
flags
&
m3
.
flags
&
m4
.
flags
&
Mat
::
CONTINUOUS_FLAG
)
!=
0
?
Size
(
m1
.
cols
*
m1
.
rows
*
widthScale
,
1
)
:
Size
(
m1
.
cols
*
widthScale
,
m1
.
rows
);
return
getContinuousSize_
(
m1
.
flags
&
m2
.
flags
&
m3
.
flags
,
m1
.
cols
,
m1
.
rows
,
widthScale
);
}
inline
Size
getContinuousSize
(
const
Mat
&
m1
,
const
Mat
&
m2
,
const
Mat
&
m3
,
const
Mat
&
m4
,
const
Mat
&
m5
,
int
widthScale
=
1
)
inline
Size
getContinuousSize
(
const
Mat
&
m1
,
const
Mat
&
m2
,
const
Mat
&
m3
,
const
Mat
&
m4
,
int
widthScale
=
1
)
{
return
(
m1
.
flags
&
m2
.
flags
&
m3
.
flags
&
m4
.
flags
&
m5
.
flags
&
Mat
::
CONTINUOUS_FLAG
)
!=
0
?
Size
(
m1
.
cols
*
m1
.
rows
*
widthScale
,
1
)
:
Size
(
m1
.
cols
*
widthScale
,
m1
.
rows
);
return
getContinuousSize_
(
m1
.
flags
&
m2
.
flags
&
m3
.
flags
&
m4
.
flags
,
m1
.
cols
,
m1
.
rows
,
widthScale
);
}
inline
Size
getContinuousSize
(
const
Mat
&
m1
,
const
Mat
&
m2
,
const
Mat
&
m3
,
const
Mat
&
m4
,
const
Mat
&
m5
,
int
widthScale
=
1
)
{
return
getContinuousSize_
(
m1
.
flags
&
m2
.
flags
&
m3
.
flags
&
m4
.
flags
&
m5
.
flags
,
m1
.
cols
,
m1
.
rows
,
widthScale
);
}
struct
NoVec
...
...
This diff is collapsed.
Click to expand it.
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