OpenCV Otsu threshold: different results on Ubuntu (openSUSE) and OS X

asked 2015-12-11 07:06:39 -0600

Anjenson gravatar image

updated 2015-12-11 07:11:57 -0600

berak gravatar image

When using Otsu's threshold provided by OpenCV on several systems I ran into a problem: the very same video frame was thresholded in a different way. To be more specific, on OS X it provides adequate results, on the contrary when running code on the same video frame on Ubuntu (or openSUSE) it performs really badly. Could anyone, please, suggest what can be a possible reason or how to solve such problem?
I am using OS X Yosemite 64bit with, Ubuntu 14 64bit, openSUSE 13.1 32bit. OpenCV 2.4.11 is installed on all the systems, the code is written in C++.

edit retag flag offensive close merge delete