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
35a45516
Commit
35a45516
authored
May 22, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imgcodecs: fix imwrite handling of different OutputArray types
parent
76ac7ab4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
loadsave.cpp
modules/imgcodecs/src/loadsave.cpp
+2
-5
No files found.
modules/imgcodecs/src/loadsave.cpp
View file @
35a45516
...
...
@@ -716,13 +716,10 @@ bool imwrite( const String& filename, InputArray _img,
{
CV_TRACE_FUNCTION
();
std
::
vector
<
Mat
>
img_vec
;
//Did we get a Mat or a vector of Mats?
if
(
_img
.
isMat
()
||
_img
.
isUMat
())
img_vec
.
push_back
(
_img
.
getMat
());
else
if
(
_img
.
isMatVector
()
||
_img
.
isUMatVector
())
if
(
_img
.
isMatVector
()
||
_img
.
isUMatVector
())
_img
.
getMatVector
(
img_vec
);
else
CV_Error
(
Error
::
StsBadArg
,
"Unknown/unsupported input encountered"
);
img_vec
.
push_back
(
_img
.
getMat
()
);
CV_Assert
(
!
img_vec
.
empty
());
return
imwrite_
(
filename
,
img_vec
,
params
,
false
);
...
...
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