mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
facerec.cpp: Removed Original LBP wrapper, because it is not in use and therefore generates a warning.
This commit is contained in:
parent
4a4f90c406
commit
989631c5cc
@ -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_<char>(src,dst); break;
|
||||
case CV_8UC1: olbp_<unsigned char>(src,dst); break;
|
||||
case CV_16SC1: olbp_<short>(src,dst); break;
|
||||
case CV_16UC1: olbp_<unsigned short>(src,dst); break;
|
||||
case CV_32SC1: olbp_<int>(src,dst); break;
|
||||
case CV_32FC1: olbp_<float>(src,dst); break;
|
||||
case CV_64FC1: olbp_<double>(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
|
||||
//------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user