Understanding the copy done by memcpy()
问题 I have to create an image which has two times the number of columns to that of the original image. Therefore, I have kept the width of the new image two times to that of the original image. Although this is a very simple task and I have already done it but I am wondering about the strange results obtained by doing this task using memcpy() . My code: int main() { Mat image = imread("pikachu.png", 1); int columns = image.cols; int rows = image.rows; Mat twoTimesImage(image.rows, 2 * image.cols,