Changing CV_64 to CV_32