Fix a bug in the thresholder

This commit is contained in:
Amit D 2021-10-11 19:29:39 +03:00 committed by GitHub
parent 5a36943de4
commit 7f349a47b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,7 +198,7 @@ std::tuple<bool, Image, Image, Image> ImageThresholder::Threshold(
Image original = GetPixRect();
pix_binary = original.copy();
original.destroy();
return std::make_tuple(false, nullptr, pix_binary, nullptr);
return std::make_tuple(true, nullptr, pix_binary, nullptr);
}
auto pix_grey = GetPixRectGrey();