Ask Your Question

Revision history [back]

Stitching without warping

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?

click to hide/show revision 2
No.2 Revision

updated 2016-06-20 02:18:09 -0600

berak gravatar image

Stitching without warping

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: 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);

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?

Stitching without warping

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?