Archive for November, 2010

insight3d on Arch Linux

I love to shoot photos and everything which is related to photography. Today I have seen a tweet about insight3d and it’s looking really good. What is insight3d? Maybe you have seen photosynth from Microsoft, a tool to generate a 3D model from lots of  photos from the same object but from different points of view. insight3d is a similar tool, but it’s OpenSource and it runs under Linux. Basically it should run, but before it runs there are some issues to solve.

It runs, but it crashes all the time. Maybe someone with more knowledge about opencv can help me on this. But now the steps to compile it under (Arch) Linux.

  • download the linux package from the website and extract it to a folder you want
  • install all dependencies from the repository:
    • pkg-config
    • opencv
    • sdl
    • gtk+-2.0
    • libxml
    • lapack
    • blas
    • OpenGL library
    • ANN (from AUR)
  • download the latest version of siftfeat from and extract the contents to “<insight_dir>/insight3d/sift”. Overwrite the old version included in the insight3d package.
  • edit the included Makefile located at “<insight_dir>/insight3d/” as follows:
    • change ANN_INCLUDE to ANN_INCLUDE= -I/usr/include/ANN/
    • change g++ line to:   g++ $(DEBUG) -o insight *.o `pkg-config –libs opencv libxml-2.0 sdl gtk+-2.0` ./sift/lib/libfeat.a $(AGARLIB) -llapack -lblas -lGL -lGLU ./sba/libsba.a /usr/lib/libANN.a
  • if you are on x86_64 then you have to change into the directory “<insight_dir>/insight3d/sba/” and run “make clean” and “make”, because the library included there is for the i386 architecture
  • after doing all the steps, go to the “<insight_dir>/insight3d/” directory, and execute “make”
  • if compilation finished then you can run insight3d with “./insight3d” (or “./insight” if you compiled the SVN version

And now the problem about the crash:

Starting the application works and also loading the photos, but doing the second step according to the tutorial (PDF), and try to match the photos it crashes right after the matching with the following error:

$ ./insight
insight3d 0.3.2, 2007-2009
licensed under GNU AGPL 3

testing memory allocation … ok
extracting keypoints
[count = 2311]
[count = 2621]
[count = 2391]
[count = 2423]
matching{}OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size() == dst.size()) in cvCopy, file /build/src/OpenCV-2.1.0/src/cxcore/cxcopy.cpp, line 466
terminate called after throwing an instance of ‘cv::Exception’
what():  /build/src/OpenCV-2.1.0/src/cxcore/cxcopy.cpp:466: error: (-215) src.depth() == dst.depth() && src.size() == dst.size() in function cvCopy


Is there anybody out there which can give me a hint why insight crashes? I can see that there is an error because an assertion failed, but the photos are from the example directory of insight3d and should work. Any hint on this?

, ,


The power of the internet

The “Deutsche Telekom” and Thomas D (member of “Die Fantastischen Vier“, a german band) has invited everybody to send them their video of the reinterpreted song “7 Seconds” by Thomas D. They called the song “Million voices” and released the song and video three days ago.

I like the song and what they have created with thousands of internet users out there. Here it is:

1 Comment