I\'ve been trying to convert some opencv C++ code in opencv java and I can\'t seem to get pixel division to work properly. I take a meanshiftsegmented mat that I convert to gray