I am trying to copy two images into one large image, but, unfortunately, I cannot paste only one image with the following attempt:
void showTwoImages(Mat imageOne, Mat imageTwo, string title) { int totalCol = imageOne.cols+imageTwo.cols; int totalRow = imageOne.rows; Mat totalImage(Size(totalCol, totalRow), 8, 3); imageOne.copyTo(totalImage(Rect(0,0,imageOne.cols, imageOne.rows))); viewImage(totalImage, title); }
My mistake:

Unfortunately, I do not get a specific error from Xcode, but I refer to the assembler code, so I can not determine the error that occurred.
source share