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
af01267f
Commit
af01267f
authored
Nov 02, 2016
by
Vladislav Sovrasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add assertion to prevent processing of large images in remap
parent
6c125331
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
imgproc.hpp
modules/imgproc/include/opencv2/imgproc.hpp
+2
-0
imgwarp.cpp
modules/imgproc/src/imgwarp.cpp
+2
-0
No files found.
modules/imgproc/include/opencv2/imgproc.hpp
View file @
af01267f
...
...
@@ -2286,6 +2286,8 @@ not supported by this function.
borderMode=BORDER_TRANSPARENT, it means that the pixels in the destination image that
corresponds to the "outliers" in the source image are not modified by the function.
@param borderValue Value used in case of a constant border. By default, it is 0.
@note
Due to current implementaion limitations the size of an input and output images should be less than 32767x32767.
*/
CV_EXPORTS_W
void
remap
(
InputArray
src
,
OutputArray
dst
,
InputArray
map1
,
InputArray
map2
,
...
...
modules/imgproc/src/imgwarp.cpp
View file @
af01267f
...
...
@@ -4856,6 +4856,8 @@ void cv::remap( InputArray _src, OutputArray _dst,
Mat
src
=
_src
.
getMat
(),
map1
=
_map1
.
getMat
(),
map2
=
_map2
.
getMat
();
_dst
.
create
(
map1
.
size
(),
src
.
type
()
);
Mat
dst
=
_dst
.
getMat
();
CV_Assert
(
dst
.
cols
<
SHRT_MAX
&&
dst
.
rows
<
SHRT_MAX
&&
src
.
cols
<
SHRT_MAX
&&
src
.
rows
<
SHRT_MAX
);
if
(
dst
.
data
==
src
.
data
)
src
=
src
.
clone
();
...
...
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