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?
![]() | 1 | initial version |
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?
![]() | 2 | No.2 Revision |
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?
![]() | 3 | retagged |
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?