From 993c0c279e562768491c5d4ddf108d4697d3763c Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Sun, 27 Mar 2016 13:52:07 -0400 Subject: [PATCH] Removing prewarp for detection scan area. Already handled by calculating the area on every resize --- src/openalpr/detection/detectormask.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/openalpr/detection/detectormask.cpp b/src/openalpr/detection/detectormask.cpp index 801aa9c..459de68 100644 --- a/src/openalpr/detection/detectormask.cpp +++ b/src/openalpr/detection/detectormask.cpp @@ -58,20 +58,8 @@ namespace alpr // Provided a region of interest, truncate it if the mask cuts off a portion of it. // No reason to analyze extra content cv::Rect DetectorMask::getRoiInsideMask(cv::Rect roi) { - - if (prewarp->valid) - { - cv::Rect warped_scan_area = prewarp->projectRect(scan_area, resized_mask.cols, resized_mask.rows, false); - - Rect roi_intersection = roi & warped_scan_area; - return roi_intersection; - - } - else - { Rect roi_intersection = roi & scan_area; - return roi_intersection; - } + return roi_intersection; }