OpenCV的不同版本中使用哪个版本的libpng? [英] What version of libpng is used in different versions of OpenCV?

查看:685
本文介绍了OpenCV的不同版本中使用哪个版本的libpng?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我正在读取.png图像并进行一些处理. OpenCV 2.4.9和OpenCV 3.0.0(对于Windows)的输出都不精确.什么可能是潜在的错误.导致问题的两个版本中的libpng是否存在任何差异.

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.

在Windows的OpenCV和Android的OpenCV的相同版本(例如2.4.9或3.0.0)中,lib(例如libpng)或lib的版本也可能会有所不同.

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.

推荐答案

导致问题的两个版本中的libpng是否存在任何差异.

Is there any difference in libpng in both the versions which is causing the problem.

您可以使用cv::getBuildInformation()进行检查(请参见此处)

You can check with cv::getBuildInformation() (see here)

在Windows的OpenCV和Android的OpenCV的相同版本(例如2.4.9或3.0.0)中,lib(例如libpng)或lib的版本也可能会有所不同.

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.

是的,当然. OpenCV动态链接到libPNG.该版本甚至可以使用系统libPNG(例如在Linux发行版上)代替捆绑的libPNG.

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.

这篇关于OpenCV的不同版本中使用哪个版本的libpng?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆