OpenCV Otsu threshold: different results on Ubuntu (openSUSE) and OS X
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++.