cv::Mat data = cv::Mat(cv::Size(100, 100), CV_64FC(10));

Is there an efficient way to convert this to a std::vector<double> of size 10 ? I could just create a vector of size 10 and initialize it with the data but I would like to know of a more efficient way.