mismatching results with imread with different libpng ?

asked 2018-07-06 10:26:16 -0500

updated 2018-07-06 10:34:29 -0500

berak gravatar image

Hi,

I am trying to read .png image using opencv imread. I have opencv installed in different systems. I have observed that imread() results using these opencv libraries are not same. There opencv libraries have dependency on different versions of libpng.so, one has dependency on libpng16 and another has dependency on libpng12. Does libpng version dependency causes mismaching results ?

If there is a dependency, can u please provide me the steps to rebuild the opencv using libpng12 dependency ?

thanks, Hari

edit retag flag offensive close merge delete

Comments

what if you use the 3rdparty libpng, that comes with opencv ? (so it won't try to link against your system's)

at least, it would be consistent across machines / oses.

cmake -DBUILD_PNG=ON -WITH_PNG=ON

berak gravatar imageberak ( 2018-07-06 10:33:26 -0500 )edit

Yes berak, if I built using 3rdparty libs it will be uniform but I want to know is there denpendency on libpng version?Does it cause different results?

nhkrishna gravatar imagenhkrishna ( 2018-07-10 08:04:24 -0500 )edit