BF: median otsu test was failing at 32 bit buildbots

And this change should fix the problem :)