Commit 9ea9b6cf authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #2208 from saskatchewancatch:issue-2098

parents 6d656ca0 0fd91f6d
...@@ -83,7 +83,7 @@ namespace xphoto ...@@ -83,7 +83,7 @@ namespace xphoto
cv::resize(_src, src, _src.size()/ls, 0, 0, cv::INTER_AREA); cv::resize(_src, src, _src.size()/ls, 0, 0, cv::INTER_AREA);
src.convertTo( img, CV_32F ); src.convertTo( img, CV_32F );
img.setTo(0, 255 - mask); img.setTo(0, ~(mask > 0));
cv::erode( mask, dmask, cv::Mat(), cv::Point(-1,-1), 2); cv::erode( mask, dmask, cv::Mat(), cv::Point(-1,-1), 2);
cv::erode(dmask, ddmask, cv::Mat(), cv::Point(-1,-1), 2); cv::erode(dmask, ddmask, cv::Mat(), cv::Point(-1,-1), 2);
......
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