added cv::Mat to float* conversion, needs more testing.