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
ba0b3983
Commit
ba0b3983
authored
Sep 30, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15609 from sturkmen72:update_loadsave_cpp
parents
a3144cba
d88d1c99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
loadsave.cpp
modules/imgcodecs/src/loadsave.cpp
+9
-10
No files found.
modules/imgcodecs/src/loadsave.cpp
View file @
ba0b3983
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
//M*/
//M*/
//
//
// Loading and saving
IPL
images.
// Loading and saving images.
//
//
#include "precomp.hpp"
#include "precomp.hpp"
...
@@ -391,7 +391,6 @@ static void ApplyExifOrientation(const Mat& buf, Mat& img)
...
@@ -391,7 +391,6 @@ static void ApplyExifOrientation(const Mat& buf, Mat& img)
* LOAD_MAT=2
* LOAD_MAT=2
* }
* }
* @param[in] mat Reference to C++ Mat object (If LOAD_MAT)
* @param[in] mat Reference to C++ Mat object (If LOAD_MAT)
* @param[in] scale_denom Scale value
*
*
*/
*/
static
void
*
static
void
*
...
@@ -463,11 +462,11 @@ imread_( const String& filename, int flags, int hdrtype, Mat* mat=0 )
...
@@ -463,11 +462,11 @@ imread_( const String& filename, int flags, int hdrtype, Mat* mat=0 )
int
type
=
decoder
->
type
();
int
type
=
decoder
->
type
();
if
(
(
flags
&
IMREAD_LOAD_GDAL
)
!=
IMREAD_LOAD_GDAL
&&
flags
!=
IMREAD_UNCHANGED
)
if
(
(
flags
&
IMREAD_LOAD_GDAL
)
!=
IMREAD_LOAD_GDAL
&&
flags
!=
IMREAD_UNCHANGED
)
{
{
if
(
(
flags
&
CV_LOAD_IMAGE
_ANYDEPTH
)
==
0
)
if
(
(
flags
&
IMREAD
_ANYDEPTH
)
==
0
)
type
=
CV_MAKETYPE
(
CV_8U
,
CV_MAT_CN
(
type
));
type
=
CV_MAKETYPE
(
CV_8U
,
CV_MAT_CN
(
type
));
if
(
(
flags
&
CV_LOAD_IMAGE
_COLOR
)
!=
0
||
if
(
(
flags
&
IMREAD
_COLOR
)
!=
0
||
((
flags
&
CV_LOAD_IMAGE
_ANYCOLOR
)
!=
0
&&
CV_MAT_CN
(
type
)
>
1
)
)
((
flags
&
IMREAD
_ANYCOLOR
)
!=
0
&&
CV_MAT_CN
(
type
)
>
1
)
)
type
=
CV_MAKETYPE
(
CV_MAT_DEPTH
(
type
),
3
);
type
=
CV_MAKETYPE
(
CV_MAT_DEPTH
(
type
),
3
);
else
else
type
=
CV_MAKETYPE
(
CV_MAT_DEPTH
(
type
),
1
);
type
=
CV_MAKETYPE
(
CV_MAT_DEPTH
(
type
),
1
);
...
@@ -583,11 +582,11 @@ imreadmulti_(const String& filename, int flags, std::vector<Mat>& mats)
...
@@ -583,11 +582,11 @@ imreadmulti_(const String& filename, int flags, std::vector<Mat>& mats)
int
type
=
decoder
->
type
();
int
type
=
decoder
->
type
();
if
(
(
flags
&
IMREAD_LOAD_GDAL
)
!=
IMREAD_LOAD_GDAL
&&
flags
!=
IMREAD_UNCHANGED
)
if
(
(
flags
&
IMREAD_LOAD_GDAL
)
!=
IMREAD_LOAD_GDAL
&&
flags
!=
IMREAD_UNCHANGED
)
{
{
if
((
flags
&
CV_LOAD_IMAGE
_ANYDEPTH
)
==
0
)
if
((
flags
&
IMREAD
_ANYDEPTH
)
==
0
)
type
=
CV_MAKETYPE
(
CV_8U
,
CV_MAT_CN
(
type
));
type
=
CV_MAKETYPE
(
CV_8U
,
CV_MAT_CN
(
type
));
if
((
flags
&
CV_LOAD_IMAGE_COLOR
)
!=
0
||
if
((
flags
&
CV_LOAD_IMAGE_COLOR
)
!=
0
||
((
flags
&
CV_LOAD_IMAGE
_ANYCOLOR
)
!=
0
&&
CV_MAT_CN
(
type
)
>
1
))
((
flags
&
IMREAD
_ANYCOLOR
)
!=
0
&&
CV_MAT_CN
(
type
)
>
1
))
type
=
CV_MAKETYPE
(
CV_MAT_DEPTH
(
type
),
3
);
type
=
CV_MAKETYPE
(
CV_MAT_DEPTH
(
type
),
3
);
else
else
type
=
CV_MAKETYPE
(
CV_MAT_DEPTH
(
type
),
1
);
type
=
CV_MAKETYPE
(
CV_MAT_DEPTH
(
type
),
1
);
...
@@ -819,11 +818,11 @@ imdecode_( const Mat& buf, int flags, int hdrtype, Mat* mat=0 )
...
@@ -819,11 +818,11 @@ imdecode_( const Mat& buf, int flags, int hdrtype, Mat* mat=0 )
int
type
=
decoder
->
type
();
int
type
=
decoder
->
type
();
if
(
(
flags
&
IMREAD_LOAD_GDAL
)
!=
IMREAD_LOAD_GDAL
&&
flags
!=
IMREAD_UNCHANGED
)
if
(
(
flags
&
IMREAD_LOAD_GDAL
)
!=
IMREAD_LOAD_GDAL
&&
flags
!=
IMREAD_UNCHANGED
)
{
{
if
(
(
flags
&
CV_LOAD_IMAGE
_ANYDEPTH
)
==
0
)
if
(
(
flags
&
IMREAD
_ANYDEPTH
)
==
0
)
type
=
CV_MAKETYPE
(
CV_8U
,
CV_MAT_CN
(
type
));
type
=
CV_MAKETYPE
(
CV_8U
,
CV_MAT_CN
(
type
));
if
(
(
flags
&
CV_LOAD_IMAGE
_COLOR
)
!=
0
||
if
(
(
flags
&
IMREAD
_COLOR
)
!=
0
||
((
flags
&
CV_LOAD_IMAGE
_ANYCOLOR
)
!=
0
&&
CV_MAT_CN
(
type
)
>
1
)
)
((
flags
&
IMREAD
_ANYCOLOR
)
!=
0
&&
CV_MAT_CN
(
type
)
>
1
)
)
type
=
CV_MAKETYPE
(
CV_MAT_DEPTH
(
type
),
3
);
type
=
CV_MAKETYPE
(
CV_MAT_DEPTH
(
type
),
3
);
else
else
type
=
CV_MAKETYPE
(
CV_MAT_DEPTH
(
type
),
1
);
type
=
CV_MAKETYPE
(
CV_MAT_DEPTH
(
type
),
1
);
...
...
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