mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
Merge pull request #18895 from oravital7:flip-module
This commit is contained in:
commit
bf0846f0ea
@ -1032,8 +1032,7 @@ void flip( InputArray _src, OutputArray _dst, int flip_mode )
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((size.width == 1 && flip_mode > 0) ||
|
if ((size.width == 1 && flip_mode > 0) ||
|
||||||
(size.height == 1 && flip_mode == 0) ||
|
(size.height == 1 && flip_mode == 0))
|
||||||
(size.height == 1 && size.width == 1 && flip_mode < 0))
|
|
||||||
{
|
{
|
||||||
return _src.copyTo(_dst);
|
return _src.copyTo(_dst);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user