ppwwyyxx / OpenPano

Automatic Panorama Stitching From Scratch
MIT License
1.9k stars 555 forks source link

Blending in y-axis direction #98

Closed auriza closed 5 years ago

auriza commented 5 years ago

You said in http://ppwwyyxx.com/2016/How-to-Write-a-Panorama-Stitcher/#Blending that:

I only used the distance along the x axis to calculate the weigh

How could I add blending in y axis direction also? I was stitching images horizontally and vertically in TRANSLATE mode. The result is not smooth vertically.

Thank you for this useful software.

1564387280740 remmina-2019-7-30-8:58:43 169730

ppwwyyxx commented 5 years ago

Translate mode requires inputs in a left-to-right order, so I'm surprised that you can even stitch them to a reasonable result.

The blending code is in https://github.com/ppwwyyxx/OpenPano/blob/master/src/stitch/blender.cc#L27-L37, and it blend both horizontally and vertically when inputs are unordered. You can modify it accordingly.

auriza commented 5 years ago

Thank you very much for your prompt response, I will try it later.