[ptx] faster stitcher

Pablo d'Angelo pablo at mathematik.uni-ulm.de
Sat Nov 22 23:44:01 GMT 2003


Hi,

Since I already had most things needed to stitch pictures already, I decided
to write a stitcher that is a bit more efficient than PTSticher. The only
real optimsation I did was to avoid remapping to many black pixels.

Currently, it supports all projections panotools support, but only bilinear
interpolation and not color correction. Feathering is also not done.

The seam is placed so that pixels close to the image centers are choosen (I
create something like the credibility image Bruno mentioned, except that its
contains exactly the distance of the current point to the middle of the
pic.) The resulting seams look similar to the ones created by PTSticher.

A small comparison with PTSticher, same pano, same interpolator,
both compiled in Debug mode and -O:

PTSticher:
real    7m57.109s
user    7m21.200s
sys     0m8.120s

My stitcher:
real    1m55.364s
user    1m37.900s
sys     0m2.720s

The pano consisted of 18 images (1600x1200), the output size was 4800x900. (360°deg
cylindrical, schweineburg, from my gallery page).

The stitcher is in the utils directory and need a installation of vigra
(1.2.0), including impex. The fftw bindings are currently not needed.  I use
it for reading/writing the files, so that I'm independant of wxWindows an
can also support more than just 8 bit images in the future.  Hmm, there
might be conflicts with the vigra include files, if the version packaged
with hugin doesn't fit to the libs installed on the system. in that case
just remove hugin/src/include/vigra and "make distclean; make".

No worries, hugin itself won't depend on a fully installed vigra in the forseeable
future.

ciao
  Pablo
--
http://wurm.wohnheim.uni-ulm.de/~redman/
Please use PGP


More information about the ptX mailing list