问题
In my application I am reading .png images and doing some processing. The output with OpenCV 2.4.9 and OpenCV 3.0.0 (both for windows) are not bit exact. What may be the potential error. Is there any difference in libpng in both the versions which is causing the problem.
Also is there any possibility that the libs (e.g. libpng) or the version of libs is different in same version (say 2.4.9 or 3.0.0) of OpenCV for windows and OpenCV for Android.
回答1:
Is there any difference in libpng in both the versions which is causing the problem.
You can check with cv::getBuildInformation()
(see here)
Also is there any possibility that the libs (e.g. libpng) or the version of libs is different in same version (say 2.4.9 or 3.0.0) of OpenCV for windows and OpenCV for Android.
Yes, of course. OpenCV is dynamically linked to libPNG. The builds may even use the system libPNG (e.g. on Linux distributions) instead of the bundled libPNG.
来源:https://stackoverflow.com/questions/31310808/what-version-of-libpng-is-used-in-different-versions-of-opencv