Create a memory continuous cv::Mat, any api could do that?
cv::Mat dst(src.size(), src.type());
I want to make sure the memory of the dst is continuous(without padding), how could I do that?
The most easiest answer is call the reshape after creation.
dst.reshape(0);
But how could I make sure it is continuous when construct?