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
ef2e5a9f
Commit
ef2e5a9f
authored
Jun 26, 2017
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8988 from sovrasov:repeat_src_eq_dst_fix
parents
48924cd8
4f987181
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
copy.cpp
modules/core/src/copy.cpp
+1
-0
test_misc.cpp
modules/core/test/test_misc.cpp
+9
-0
No files found.
modules/core/src/copy.cpp
View file @
ef2e5a9f
...
...
@@ -856,6 +856,7 @@ void repeat(InputArray _src, int ny, int nx, OutputArray _dst)
{
CV_INSTRUMENT_REGION
()
CV_Assert
(
_src
.
getObj
()
!=
_dst
.
getObj
());
CV_Assert
(
_src
.
dims
()
<=
2
);
CV_Assert
(
ny
>
0
&&
nx
>
0
);
...
...
modules/core/test/test_misc.cpp
View file @
ef2e5a9f
...
...
@@ -145,3 +145,12 @@ TEST(Core_String, end_method_regression)
cv
::
String
new_string
(
old_string
.
begin
(),
old_string
.
end
());
EXPECT_EQ
(
6u
,
new_string
.
size
());
}
TEST
(
Core_Copy
,
repeat_regression_8972
)
{
Mat
src
=
(
Mat_
<
int
>
(
1
,
4
)
<<
1
,
2
,
3
,
4
);
ASSERT_ANY_THROW
({
repeat
(
src
,
5
,
1
,
src
);
});
}
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