How can I compile the evaluation.cpp in opencv?
evaluation.cpp
contains an useful function for computing a detector through evaluateFeatureDetector
and even computeRecallPrecisionCurve
.
Any useful alternative to compute these metrics is well accepted (possibly in C++)
Anyway, it includes precomp.hpp
which includes private.hpp
which cannot be included and the following error is returned:
/usr/local/include/opencv2/core/private.hpp:48:4: error: #error this is a private header which should not be used from outside of the OpenCV library
# error this is a private header which should not be used from outside of the OpenCV library
^
In file included from precomp.hpp:50:0,
from evaluation.cpp:45,
from Main.cpp:1:
/usr/local/include/opencv2/core/private.hpp:58:24: fatal error: Eigen/Core: No such file or directory
compilation terminated.
In file included from precomp.hpp:50:0,
from evaluation.cpp:45:
/usr/local/include/opencv2/core/private.hpp:48:4: error: #error this is a private header which should not be used from outside of the OpenCV library
# error this is a private header which should not be used from outside of the OpenCV library
^
In file included from precomp.hpp:50:0,
from evaluation.cpp:45:
/usr/local/include/opencv2/core/private.hpp:58:24: fatal error: Eigen/Core: No such file or directory
compilation terminated.
How can I compile and use it?