Ask Your Question
1

The OpenCV Stitcher is Very Slow

asked 2013-05-01 23:44:30 -0600

NightLife gravatar image

updated 2015-10-27 14:03:39 -0600

I am doing the project with library of "stitching". But the problem is that works so slowly and takes too much time to stitch!!!

Do you have any idea to make it more faster?!!

edit retag flag offensive close merge delete

Comments

1

Actually, I do not understand why people think stitching should be a fast algorithm. Looking at all the steps that need to be performed, with several operations taking seconds and everything depending on the amount of pixels and the amount of overlap between images... So do not expect to get this fast or real time, it is nearly impossible with current hardware, even if you code everything to work multicore, you will have bottlenecks that need to happen sequentially.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-05-02 02:05:16 -0600 )edit
2

Ok it will never be real time and I don't think anybody was necessarily expecting it to be but it certainly isn't out of the realms of possibility to speed this up substantially.

ricor gravatar imagericor ( 2013-05-02 13:15:52 -0600 )edit

I do not want to implement it as real-time processing. it is a project to run in Desktop. Thank you anyway guys. :)

NightLife gravatar imageNightLife ( 2013-05-02 23:46:30 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-05-02 00:51:53 -0600

ricor gravatar image

updated 2013-05-02 00:52:32 -0600

Hi Nightlife,

I've been looking at the stitching_detailed.cpp example which is heavily based on the stitching class. So far I've noticed several things that could help with speed that may be relevant to you whether or not you are using that example:

  1. The feature detection for each image is run within a for loop in the example. This could be parellelised to run on multiple cores as getting the features in each image is independent.

  2. There are appear to be some GPU capabilities for SURF and I think other places within Stitching.

  3. What resolution are you using for the image registration stage? Can this be lowered without affecting performance?

  4. What resolution are you using for the composition stage? Can this be lowered and still give you adequate panorama? I've found that this can affect performance a lot.

Can you tell us where your bottleneck is (feature detection, pairwise matching, estimating homography, composition)? How many images are you trying to stitch etc?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-05-01 23:44:30 -0600

Seen: 2,769 times

Last updated: May 02 '13