What version of libpng is used in different versions of OpenCV?

微笑、不失礼 提交于 2019-12-12 03:48:37

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!