I have :
double score = cvMatchContourTrees( CT1, CT2, CV_CONTOUR_TREES_MATCH_I1, 0.0 );
cout<<score<<endl;
There are values returned as -1.#IND. Other than that, the positive values are normal, like 1.34543.
Why does this happen? How do I solve it?
As Frederic says, it's the result of a 'Not a Number' being formatted by an application built with visual studio on windows. John D Cook has an excellent reference:
Watch out for truncations if you do any sort of formatting with your string; I've encountered related issues when handling these sorts of errors myself.
In my experience
-1.#IND
comes from imaginary numbers. So, doingcout << sqrt(-1.);
should output-1.#IND
It's NaN.