Different results of filters after openCV update 2.8 to 3.4.0

asked 2018-06-21 05:05:51 -0600

After an update of openCV from 2.8 to 3.4 the results for several filters (e.g. NativeAdaptiveBinarizer, etc) are slightly different. (Using the same Parameters) The difference can be only a few pixels but still there is a difference.

What might be a reason for this change? Is it possible to receive the old results? (Current Unit tests fail with those slightly different results)

In the attachment there is an example (only few pixels differ)

C:\fakepath\Result_v28.tiff C:\fakepath\Result_v34.tiff

edit retag flag offensive close merge delete


just to clarify: did you mean: 3.4 (latest 3.x dev branch) or 3.4.0 (some release from 2017) ?

berak gravatar imageberak ( 2018-06-21 08:01:46 -0600 )edit

i meant 3.4.0

However the problem has been detected.

In version 3.0.0 to 3.1.0 there has been a change that changes the accuracy from integer to floating point.

CIBOpenCV gravatar imageCIBOpenCV ( 2018-06-21 09:33:04 -0600 )edit