Update seamless_cloning.cpp

pull/15929/head
Suleyman TURKMEN 5 years ago committed by GitHub
parent 955b20230c
commit eff514f8bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      modules/photo/src/seamless_cloning.cpp

@ -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…
Cancel
Save