PanoramaImageStitching
Automatically stiching several individual images to generate a panorama image. Follow the routine described in the paper Automatic Panoramic Image Stitching using Invariant Features. For more details about theory and practice of panorama image stitching including algorithms, results and analysis, please read my post. Any feedback is welcomed!
Dependencies
Implement with The CImg Library and VLFeat open source library in C++ language.
Test on Visual Studio 2015, C++11. You can also compile in Linux with linuxbuild.sh.
Images should be of bmp
format(much easier to convert by ImageMagick).
Usage of VLFeat
Download and unpack the latest VLFeat binary distribution (I used VLFeat 0.9.20 binary package on May 11, 2017) in a directory of your choice (e.g. F:\vlfeat-0.9.20-bin
)
For Mac users, read this Apple X-Code tutorial.
These instructions show how to setup a basic VLFeat project with Visual Studio 2015 on Windows 10 (64 bit). Instructions for other versions of Visual Studio and Windows should be similar.
- Specify the value of the PATH environment variable. E.g. Add
F:\vlfeat-0.9.20-bin\vlfeat-0.9.20\bin\win64
toPath
, wherewin64
depends on your architecture. - Open VS and select
File > New > Project
and chooseGeneral > Empty Project
. - Click
Project > Properties
to open Property Pages. ChooseConfiguration > All Configurations
. - Select
Configuration Properties > C/C++ > General
and add the root path of the VLFeat folder (e.g.F:\vlfeat-0.9.20-bin\vlfeat-0.9.20
) toAdditional Include Directories
. - Select
Configuration Properties > Linker > General
and add thebin/win32
folder (even if your architecture is win64) (e.g.F:\vlfeat-0.9.20-bin\vlfeat-0.9.20\bin\win32
) toAdditional Library Directories
. - Select
Configuration Properties > Linker > Input
and addvl.lib
toAdditional Dependencies
. - Copy the
vl.dll
file inbin/win32
folder (e.g.F:\vlfeat-0.9.20-bin\vlfeat-0.9.20\bin\win32
) to your VS project's debug or release folder (e.g.C:\Users\HYPJUDY\Documents\Visual Studio 2015\Projects\PanoramaImageStitching\Debug
). - Build and run the project (Ctrl+F5)
Reference: Using from C and Microsoft Visual Studio tutorial.