Hello. Now I use opencv for stitchig. But the code is not working fast. I looked at that thing takes a long time a mask and image warping. Here: Mat K; cameras[img_idx].K().convertTo(K, CV_32F); warper->warp(img, K, cameras[img_idx].R, INTER_NEAREST, BORDER_CONSTANT, img_warped); mask.create(img_size, CV_8U); mask.setTo(Scalar::all(255)); warper->warp(mask, K, cameras[img_idx].R, INTER_NEAREST, BORDER_CONSTANT, mask_warped);
Therefore, I decided to turn it off and do a simple assignment.
img_warped = img.clone();
etc...
But the ever-memory exception error occurs. Maybe someone has already done it?