Posts Tagged insight3d

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 http://blogs.oregonstate.edu/hess/code/sift/ 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
/home/user/insight3d/insight3d/test/100_4741.JPG
[count = 2311]
/home/user/insight3d/insight3d/test/100_4742.JPG
[count = 2621]
/home/user/insight3d/insight3d/test/100_4743.JPG
[count = 2391]
/home/user/insight3d/insight3d/test/100_4744.JPG
[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

Aborted

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?

, ,

10 Comments

Follow

Get every new post delivered to your Inbox.