From 41991a3d8db20d09afaa6721d225abbc61f342a1 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Mon, 21 Mar 2016 13:40:26 -0400 Subject: [PATCH] Added constructor argument to functions hidden by preprocessor --- src/openalpr/detection/detectorfactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openalpr/detection/detectorfactory.cpp b/src/openalpr/detection/detectorfactory.cpp index 0823614..6810594 100644 --- a/src/openalpr/detection/detectorfactory.cpp +++ b/src/openalpr/detection/detectorfactory.cpp @@ -14,7 +14,7 @@ namespace alpr else if (config->detector == DETECTOR_LBP_GPU) { #ifdef COMPILE_GPU - return new DetectorCUDA(config); + return new DetectorCUDA(config, prewarp); #else std::cerr << "Error: GPU detector requested, but GPU extensions are not compiled. " << "Add COMPILE_GPU=1 to the compiler definitions to enable GPU compilation." << @@ -28,7 +28,7 @@ namespace alpr return new DetectorOCL(config, prewarp); #else std::cerr << "Error: OpenCL acceleration requires OpenCV 3.0. " << std::endl; - return new DetectorCPU(config); + return new DetectorCPU(config, prewarp); #endif } else if (config->detector == DETECTOR_MORPH_CPU)