MungoMeng / Panorama-OpticalFlow

Panorama stitching based on asymmetric bidirectional optical flow
MIT License
89 stars 19 forks source link

First stage of the algorithm #3

Open leohsmedeiros opened 3 years ago

leohsmedeiros commented 3 years ago

It's not an issue, but do you have an implementation for the first stage of the algorithm?

leohsmedeiros commented 3 years ago

Please, I don't know how to do the first step, can anyone help me? I'm trying to stitch images taken from mobile phone, but I saw that has to prepare the images before to execute the code, how can I do that?

MungoMeng commented 3 years ago

Sorry, I don't preserve the code for the first stage. You can just try Hugin for preprocessing. Please refer to http://hugin.sourceforge.net/

Let me offer a simple guideline to use Hugin here: (1) Download the Hugin for your system. (2) Open Hugin and load all your photos. (3) Click “Align” (4) Save the project as a .pto file (5) Open this .pto file with TextEdit and remove “r:CROP” in the third line (6) Open the .pto file again with Hugin, and then click “create panorama” (7) Click “keep intermediate images”, and then click “OK”

Finally, you can get intermediate images of coarse registration. The intermediate images can be used in the second stage of my algorithm to perform fine-tuning registration.