From 989631c5cc312c7d750e15b16a22901529a26233 Mon Sep 17 00:00:00 2001 From: Philipp Wagner Date: Tue, 31 Jul 2012 21:54:48 +0200 Subject: [PATCH] facerec.cpp: Removed Original LBP wrapper, because it is not in use and therefore generates a warning. --- modules/contrib/src/facerec.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/modules/contrib/src/facerec.cpp b/modules/contrib/src/facerec.cpp index 78e4af43a2..6ff51fe89a 100644 --- a/modules/contrib/src/facerec.cpp +++ b/modules/contrib/src/facerec.cpp @@ -578,24 +578,6 @@ void olbp_(InputArray _src, OutputArray _dst) { } } -static void olbp(InputArray src, OutputArray dst) { - int type = src.getMat().type(); - switch (type) { - case CV_8SC1: olbp_(src,dst); break; - case CV_8UC1: olbp_(src,dst); break; - case CV_16SC1: olbp_(src,dst); break; - case CV_16UC1: olbp_(src,dst); break; - case CV_32SC1: olbp_(src,dst); break; - case CV_32FC1: olbp_(src,dst); break; - case CV_64FC1: olbp_(src,dst); break; - default: - string error_msg = format("Using Original Local Binary Patterns for feature extraction only works on single-channel images (given %d). Please pass the image data as a grayscale image!", type); - CV_Error(CV_StsNotImplemented, error_msg); - break; - } -} - - //------------------------------------------------------------------------------ // cv::elbp //------------------------------------------------------------------------------