Remove an arbitrary limit for the image size

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2021-05-15 11:44:46 +02:00
parent a0cf117c5d
commit 57b7974292

View File

@ -190,11 +190,6 @@ std::tuple<bool, Image, Image, Image> ImageThresholder::Threshold(
Image pix_binary = nullptr;
Image pix_thresholds = nullptr;
if (image_width_ > INT16_MAX || image_height_ > INT16_MAX) {
tprintf("Image too large: (%d, %d)\n", image_width_, image_height_);
return std::make_tuple(false, nullptr, nullptr, nullptr);
}
if (pix_channels_ == 0) {
// We have a binary image, but it still has to be copied, as this API
// allows the caller to modify the output.