What is the reason for byte alignment?
shallow copy VS deep copy
-
shallow copy
cv::Mat image1 = cv::imread(PATH);
cv::Mat image2(image1);
cv::Mat image3 = image1; -
deep copy
cv::Mat image4;
image4.copyTo(image2);
cv::Mat image5 = image3.clone();
Do I need to do 4byte align(64bit 8byte align) in shallow copy and deep copy?