Found problem with conversion from cv::Mat to float* in two spots