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 "opencv2/opencv.hpp"
#include "opencv2/face/bif.hpp"
#include
using namespace cv;
using namespace std;
int main(int argc, char** argv) {
cv::Mat fea;
cv::Ptr bif = cv::face::createBIF();
cv::Mat image(60, 60, CV_32F);
cv::theRNG().fill(image, cv::RNG::UNIFORM, 0, 1);
bif->compute(image, fea);
cout << "fea = " << endl << " " << fea << endl << endl;
return 0;
}
Thank you in advance.
**EDIT:**
Sorry for my delayed edit, but please let me ask something more. I have made the changes you suggested and for most of the images the `NaN` value disappeared. However, the problem for some images is not fixed. I am giving an example below. Could you please provide some extra help on this?

↧