Fixed build without CUDA
authorVladislav Vinogradov <no@email>
Sun, 18 Mar 2012 12:27:10 +0000 (12:27 +0000)
committerVladislav Vinogradov <no@email>
Sun, 18 Mar 2012 12:27:10 +0000 (12:27 +0000)
modules/gpu/src/orb.cpp

index fb5be1a..a69547a 100644 (file)
@@ -48,7 +48,7 @@ using namespace cv::gpu;
 \r
 #if !defined (HAVE_CUDA)\r
 \r
-cv::gpu::ORB_GPU::ORB_GPU(int, float, int, int, int, int, int, int) { throw_nogpu(); }\r
+cv::gpu::ORB_GPU::ORB_GPU(int, float, int, int, int, int, int, int) : fastDetector_(20) { throw_nogpu(); }\r
 void cv::gpu::ORB_GPU::operator()(const GpuMat&, const GpuMat&, std::vector<KeyPoint>&) { throw_nogpu(); }\r
 void cv::gpu::ORB_GPU::operator()(const GpuMat&, const GpuMat&, GpuMat&) { throw_nogpu(); }\r
 void cv::gpu::ORB_GPU::operator()(const GpuMat&, const GpuMat&, std::vector<KeyPoint>&, GpuMat&) { throw_nogpu(); }\r
@@ -397,7 +397,7 @@ namespace
 }\r
 \r
 cv::gpu::ORB_GPU::ORB_GPU(int nFeatures, float scaleFactor, int nLevels, int edgeThreshold, int firstLevel, int WTA_K, int scoreType, int patchSize) :\r
-    nFeatures_(nFeatures), scaleFactor_(scaleFactor), nLevels_(nLevels), edgeThreshold_(edgeThreshold), firstLevel_(firstLevel), WTA_K_(WTA_K),
+    nFeatures_(nFeatures), scaleFactor_(scaleFactor), nLevels_(nLevels), edgeThreshold_(edgeThreshold), firstLevel_(firstLevel), WTA_K_(WTA_K),\r
     scoreType_(scoreType), patchSize_(patchSize),\r
     fastDetector_(DEFAULT_FAST_THRESHOLD)\r
 {    \r