How to determine which version of OpenCV I have installed?
I am most interested in knowing a way of doing it programatically (and cross-platform), but I can
You can check the CV_VERSION macro.
CV_VERSION