mirror of
https://github.com/opencv/opencv.git
synced 2025-07-31 09:57:28 +08:00
Update seamless_cloning.cpp
This commit is contained in:
parent
955b20230c
commit
eff514f8bb
@ -51,8 +51,8 @@ static Mat checkMask(InputArray _mask, Size size)
|
||||
{
|
||||
Mat mask = _mask.getMat();
|
||||
Mat gray;
|
||||
if (mask.channels() == 3)
|
||||
cvtColor(mask, gray, COLOR_BGR2GRAY);
|
||||
if (mask.channels() > 1)
|
||||
cvtColor(mask, gray, COLOR_BGRA2GRAY);
|
||||
else
|
||||
{
|
||||
if (mask.empty())
|
||||
|
Loading…
Reference in New Issue
Block a user