Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Photo stitching/panorama API/DLL/Library anyone?

For a special project, I need to find an API/DLL/Library to help me create a big image using parts of this image. For example, if someone take 4 pictures representing the 360 degrees around him, he will be able to create one big image (panorama) by stitching the 4 images together using special algorithm that recognize some patterns.

I know how to do this in Photoshop and I know there are a lot of programs that to this on the internet. But I want one that will be controlled by programming. This can be in C, C++, or .NET. If you have something in another language, you can tell answer too, I may consider to write a wrapper.

like image 367
Jean-François Côté Avatar asked Dec 02 '10 13:12

Jean-François Côté


4 Answers

I was looking for the same thing and I've found this.
It is a .net framework that can manipulate images. It can stitch together 2 images using 4 steps :

  1. Interest point detection
  2. Correlation matching
  3. Robust homography estimation
  4. Gradient blending

The demo covers only the stitching of 2 pictures at a time, but the code can be modified to stitch more pictures into one.
It is easy to use and it is open source.

like image 172
gion_13 Avatar answered Nov 08 '22 07:11

gion_13


As far as i know Hugin is best which comes with source for both mac and windows

http://hugin.sourceforge.net/

It's using one of the best stitching algorithm which many industry big names in this field use it

Also Take a look at GIMP

and pano12 from panotools which is core of ptstitcher

And

For preview your pano files use devalvr

http://www.devalvr.com/

u can extract installer and use ocx within installer it's fastest for stand-alone projects with many parameters , commands , methods , etc

like image 27
Synxmax Avatar answered Nov 08 '22 08:11

Synxmax


This is used by GIMP as well http://stitchpanorama.sourceforge.net/

like image 3
Kamahire Avatar answered Nov 08 '22 07:11

Kamahire


SharpStitch is an image alignment and stitching library for .NET:

http://imagingshop.com/sharpstitch

It can create panoramic mosaics as well.

The library can do automatic stitching in a simple command or or perform one of the specific tasks (feature detection, feature matching, bundle adjustment / optimization, blending and rendering)

We as authors are open to add new features and improvements upon user's request. We are also developing GUI tools such as panorama viewer (using WPF).

Here is an a typical output of SharpStitch library:

enter image description here

like image 3
Libor Avatar answered Nov 08 '22 06:11

Libor