OpenPano 复现

https://github.com/ppwwyyxx/OpenPano 复现

git clone https://github.com/ppwwyyxx/OpenPano.git
# ubuntu 安装依赖
sudo apt install build-essential sed cmake libjpeg-dev libeigen3-dev

升级 cmake 3-16 到 3-23

https://www.cnblogs.com/odesey/p/18104392

编译:

cmake -B build && make -C build
# Binary will be found at ./build/src/image-stitching

下载示例图像:

https://github.com/ppwwyyxx/OpenPano/releases/tag/0.1

使用:

cd OpenPano/build/src
cp ../../src/config.cfg ./

./image-stitching ../../example-data/CMU0/medium00.JPG  ../../example-data/CMU0/medium01.JPG ../../example-data/CMU0/medium02.JPG ../../example-data/CMU0/medium03.JPG  ../../example-data/CMU0/medium04.JPG  ../../example-data/CMU0/medium05.JPG

OpenPano/build/src 文件夹下 out.jpg 结果:

image

测试其他图像:

./image-stitching  ../../../stitching_tutorial/panorama_example_2017/PB240137.JPG ../../../stitching_tutorial/panorama_example_2017/PB240136.JPG ../../../stitching_tutorial/panorama_example_2017/PB240135.JPG ../../../stitching_tutorial/panorama_example_2017/PB240134.JPG ../../../stitching_tutorial/panorama_example_2017/PB240133.JPG ../../../stitching_tutorial/panorama_example_2017/PB240132.JPG ../../../stitching_tutorial/panorama_example_2017/PB240131.JPG ../../../stitching_tutorial/panorama_example_2017/PB240130.JPG

结果失败,拼接的看不出来啥东西

调整 config.cfg 参数:

# [general modes]: if no modes is set, will use naive mode
CYLINDER 0
ESTIMATE_CAMERA 0
TRANS 1
# if no modes above is set, use naive mode

ORDERED_INPUT 1				# set this option when input is ordered
CROP 0								# crop the result to a rectangle

...
# [blending]
MULTIBAND 3	# set to 0 to disable, set to k to use k bands

image

显然,图像并不能水平的拼接,我尝试了其他模式,效果更差。

posted @ 2024-04-07 10:50  Zenith_Hugh  阅读(80)  评论(0)    收藏  举报