From fa3e558618a7c3eae0771294ce9a243c8819d1a0 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Tue, 31 Aug 2021 13:33:05 -0600 Subject: [PATCH] removed ebif --- openbr/plugins/classification/ebif.cpp | 148 ---------------------------------------------------------------------------------------------------------------------------------------------------- 1 file changed, 0 insertions(+), 148 deletions(-) delete mode 100644 openbr/plugins/classification/ebif.cpp diff --git a/openbr/plugins/classification/ebif.cpp b/openbr/plugins/classification/ebif.cpp deleted file mode 100644 index 0f5c9c5..0000000 --- a/openbr/plugins/classification/ebif.cpp +++ /dev/null @@ -1,148 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * Copyright 2012 The MITRE Corporation * - * * - * Licensed under the Apache License, Version 2.0 (the "License"); * - * you may not use this file except in compliance with the License. * - * You may obtain a copy of the License at * - * * - * http://www.apache.org/licenses/LICENSE-2.0 * - * * - * Unless required by applicable law or agreed to in writing, software * - * distributed under the License is distributed on an "AS IS" BASIS, * - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * - * See the License for the specific language governing permissions and * - * limitations under the License. * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#include - -#include -#include -#include - -using namespace cv; - -namespace br -{ - -/*! - * \ingroup transforms - * \brief Face Recognition Using Early Biologically Inspired Features - * \br_paper Li, Min, et al. - * "Face recognition using early biologically inspired features." - * Biometrics: Theory, Applications and Systems (BTAS), 2013 IEEE Sixth International Conference on. IEEE, 2013. - * \author Josh Klontz \cite jklontz - * \br_property int N The number of scales. Default is 6. - * \br_property int M The number of orientations between 0 and pi. Default is 9. - */ -class EBIFTransform : public UntrainableTransform -{ - Q_OBJECT - Q_PROPERTY(int N READ get_N WRITE set_N RESET reset_N STORED false) // scales - Q_PROPERTY(int M READ get_M WRITE set_M RESET reset_M STORED false) // orientations - BR_PROPERTY(int, N, 6) - BR_PROPERTY(int, M, 9) - - QList orientations; - - void init() - { - for (int m=0; m > features; - foreach (Transform *orientation, orientations) { - // Compute the reponse wavelet response - Template response; - orientation->project(scales, response); - - // Pool for each two adjacent features - QList orientedFeatures; - for (int i=0; i localFeatures; localFeatures.reserve(2*M); - for (int m=0; m pool(const Mat &bottom, const Mat &top) const - { - QList features; - for (int i=0; i<=top.rows-3; i+=3) { - for (int j=0; j<=top.cols-3; j+=3) { - QList vals; vals.reserve(3*3 + 4*4); - - // Top values - for (int k=0; k<3; k++) { - const float *data = top.ptr(i+k, j); - for (int l=0; l<3; l++) - vals.append(data[l]); - } - - // Bottom values - for (int k=0; k<4; k++) { - const float *data = bottom.ptr(4*i/3+k, 4*j/3); - for (int l=0; l<4; l++) - vals.append(data[l]); - } - - double mean, stddev; - Common::MeanStdDev(vals, &mean, &stddev); - features.append(mean); - features.append(stddev); - } - } - - return features; - } -}; - -BR_REGISTER(Transform, EBIFTransform) - -} // namespace br - -#include "classification/ebif.moc" -- libgit2 0.21.4