From 8b643b03d3e43d0111a155e3e9119aaa36b9b098 Mon Sep 17 00:00:00 2001 From: uvos Date: Thu, 1 Jul 2021 16:43:31 +0200 Subject: [PATCH] remove unnesecary dead space removeal --- src/unwrap.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/unwrap.cpp b/src/unwrap.cpp index e8fec70..707ba5d 100644 --- a/src/unwrap.cpp +++ b/src/unwrap.cpp @@ -172,12 +172,6 @@ RemapedImage applyRemap(const cv::Mat& image, const RemapMap &map) outputSize.width-map.outputCellSize, outputSize.height-map.outputCellSize); cv::Mat xMapRed = xMapResized(noBorderRoi); cv::Mat yMapRed = yMapResized(noBorderRoi); - cv::Rect deadRoi; - if(findDeadSpace(xMapResized, deadRoi)) - { - xMapRed = yMapRed(deadRoi); - yMapRed = yMapRed(deadRoi); - } cv::remap(image, out.image, xMapRed, yMapRed, cv::INTER_LINEAR); out.origin = cv::Point2i(map.topLeftCoordinate.x*map.outputCellSize, map.topLeftCoordinate.y*map.outputCellSize); return out;