Update seamless_cloning.cpp

This commit is contained in:
Suleyman TURKMEN
2019-11-17 21:25:03 +03:00
committed by GitHub
parent 955b20230c
commit eff514f8bb
+2 -2
View File
@@ -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())