Commit 40778fa3 authored by Arkadiusz Raj's avatar Arkadiusz Raj

Change name to minimize confusion

parent 4a9c84c5
...@@ -232,7 +232,7 @@ static ImageEncoder findEncoder( const String& _ext ) ...@@ -232,7 +232,7 @@ static ImageEncoder findEncoder( const String& _ext )
enum { LOAD_CVMAT=0, LOAD_IMAGE=1, LOAD_MAT=2 }; enum { LOAD_CVMAT=0, LOAD_IMAGE=1, LOAD_MAT=2 };
static void RotateImage(const String& filename, Mat& img) static void ApplyExifOrientation(const String& filename, Mat& img)
{ {
int orientation = IMAGE_ORIENTATION_TL; int orientation = IMAGE_ORIENTATION_TL;
...@@ -461,7 +461,7 @@ imreadmulti_(const String& filename, int flags, std::vector<Mat>& mats) ...@@ -461,7 +461,7 @@ imreadmulti_(const String& filename, int flags, std::vector<Mat>& mats)
// optionally rotate the data if EXIF' orientation flag says so // optionally rotate the data if EXIF' orientation flag says so
if( (flags & IMREAD_IGNORE_ORIENTATION) == 0 && flags != IMREAD_UNCHANGED ) if( (flags & IMREAD_IGNORE_ORIENTATION) == 0 && flags != IMREAD_UNCHANGED )
{ {
RotateImage(filename, mat); ApplyExifOrientation(filename, mat);
} }
break; break;
...@@ -496,7 +496,7 @@ Mat imread( const String& filename, int flags ) ...@@ -496,7 +496,7 @@ Mat imread( const String& filename, int flags )
/// optionally rotate the data if EXIF' orientation flag says so /// optionally rotate the data if EXIF' orientation flag says so
if( (flags & IMREAD_IGNORE_ORIENTATION) == 0 && flags != IMREAD_UNCHANGED ) if( (flags & IMREAD_IGNORE_ORIENTATION) == 0 && flags != IMREAD_UNCHANGED )
{ {
RotateImage(filename, img); ApplyExifOrientation(filename, img);
} }
/// return a reference to the data /// return a reference to the data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment