Fixed cvMat2Float, now it needs a better place to be put in