Skip to content

Commit 9ea9b6c

Browse files
committed
Merge pull request #2208 from saskatchewancatch:issue-2098
2 parents 6d656ca + 0fd91f6 commit 9ea9b6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/xphoto/src/inpainting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ namespace xphoto
8383
cv::resize(_src, src, _src.size()/ls, 0, 0, cv::INTER_AREA);
8484

8585
src.convertTo( img, CV_32F );
86-
img.setTo(0, 255 - mask);
86+
img.setTo(0, ~(mask > 0));
8787

8888
cv::erode( mask, dmask, cv::Mat(), cv::Point(-1,-1), 2);
8989
cv::erode(dmask, ddmask, cv::Mat(), cv::Point(-1,-1), 2);

0 commit comments

Comments
 (0)