Hello,
I am using bif function (bif.cpp) from the extra module 'face' of Opencv-3.0.1. When I run the function for a test image, the returned feature vector includes many NaN values. Could you please help me understand why this is happening?
#include "cv.hpp"
#include "opencv.hpp"
#include "highgui.h"
#include "bif.hpp"
#include <iostream>
using namespace cv;
using namespace std;
int main(int argc, char** argv) {
cv::Mat fea;
cv::Ptr<cv::face::BIF> bif = cv::face::createBIF();
cv::Mat image(60, 60, CV_32F);
cv::theRNG().fill(image, cv::RNG::UNIFORM, -1, 1);
bif->compute(image, fea);
cout << "fea = " << endl << " " << fea << endl << endl;
waitKey(0);
return 0;
}
Thank you in advance.