Removing prewarp for detection scan area. Already handled by calculating the area on every resize

This commit is contained in:
Matt Hill
2016-03-27 13:52:07 -04:00
parent 53dda59829
commit 993c0c279e

View File

@@ -58,20 +58,8 @@ namespace alpr
// Provided a region of interest, truncate it if the mask cuts off a portion of it. // Provided a region of interest, truncate it if the mask cuts off a portion of it.
// No reason to analyze extra content // No reason to analyze extra content
cv::Rect DetectorMask::getRoiInsideMask(cv::Rect roi) { 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; Rect roi_intersection = roi & scan_area;
return roi_intersection; return roi_intersection;
}
} }