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;