3d from single camera -

still cant get it to compile on my macbook … having problems with make command . can someone pass me a working xcode project ?

Hello

I would be really glad someone can help me, because I am a newbee a little bit

I COMPILED PTAM:, and at start I get (PPC G4, 1.67Ghz …)

Does anyone know this issue?

THX ALOT!!

Error creating QTBuffer; expection:
Welcome to CameraCalibrator

Parallel tracking and mapping for Small AR workspaces
Copyright © Isis Innovation Limited 2008

Parsing calibrator_settings.cfg …
! GUI_impl::Loadfile: Failed to load script file “calibrator_settings.cfg”.
VideoSource_OSX: Creating QTBuffer…
IMPORTANT
This will open a quicktime settings planel. >
You should use this settings dialog to turn the camera’s
sharpness to a minimum, or at least so small that no sharpening
artefacts appear! In-camera sharpening will seriously degrade the
performance of both the camera calibrator and the tracking system.
Error creating QTBuffer; expection: QTBuffer: failed to open video sequence grabber: SGNewChannel returned error

Hello,

i know this thread is a bit out of date but it would be realy nice if someone could upload the PTAM_webcam.zip or post the code for webcam support, because http://briefcase.yahoo.co.jp/blog-kougaku/ seems to be down.

I was able to compile and run the PTAM project on my windows machine but i only have a webcam -.-

greets

Hi all!

I’m a researcher from the National University of Singapore, and I tried to download the PTAM VS2005 version from http://image.chonnam.ac.kr/scraps/share/PTAM.zip, but it asks for a username and password. Any help on what the username and password is, or where else I can download it from?

I have trouble compiling gvars3 and libCVD too.

Any help would really be appreciated.

Thanks!

Hi

I’m trying to compile it for mac, following the readme file, but i’m stuck at compiling gvars3… I have downloaded the version the readme files suggests, and start by running ./configure --disable-widgets, followed by make, but make stops with the following error:

  
src/GUI_readline.cc: In static member function ‘static void* GVars3::spawn_readline_thread::proc(void*)’:  
src/GUI_readline.cc:69: error: ‘rl_event_hook’ was not declared in this scope  
src/GUI_readline.cc: In destructor ‘GVars3::spawn_readline_thread::~spawn_readline_thread()’:  
src/GUI_readline.cc:96: error: ‘rl_done’ was not declared in this scope  
src/GUI_readline.cc: In constructor ‘GVars3::readline_in_current_thread::readline_in_current_thread(const std::string&)’:  
src/GUI_readline.cc:117: error: ‘rl_event_hook’ was not declared in this scope  
src/GUI_readline.cc:118: error: ‘rl_set_keyboard_input_timeout’ was not declared in this scope  
make: *** [src/GUI_readline.o] Error 1  
  

Anybody knows what i have missed??

Jonas

Joel,

Do you think you could post a brief description of how you got the code to compile and run in OSX with an iSight?

Thanks,
-Abe

Sure thing:

Download the source from:

http://www.robots.ox.ac.uk/~gk/PTAM/

Read the readme.txt! It has complete instructions.

You’ll need Xcode, X11 and X11 SDK to get it running.

See instructions taken from the readme below:

Libraries:

The software has three principal dependencies:

  1. TooN - a header library for linear algebra
  2. libCVD - a library for image handling, video capture and computer
    vision
  3. Gvars3 - a run-time configuration/scripting library, this is a
    sub-project of libCVD.

All three above are written by member of the Cambridge Machine
Intelligence lab and are licensed under the LGPL.

Current versions are available from Savannah via CVS:
http://savannah.nongnu.org/projects/toon (for TooN)
http://savannah.nongnu.org/projects/libcvd (for libCVD and GVars)

The latest version of these libraries can be obtained via CVS and ssh:

# export CVS_RSH=ssh
# cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/toon co TooN
# cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/libcvd co libcvd
# cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/libcvd co gvars3

It should be noted, however, that the libraries change rapidly. To
ensure compatibility, it may be useful to download the libraries
corresponding to a time at which they were known to be compatible. To
do so, use the following commands:

# export CVS_RSH=ssh
# cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/toon co -D “Fri Sep 5 15:20:31 BST 2008” TooN
# cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/libcvd co -D “Fri Sep 5 15:20:31 BST 2008” libcvd
# cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/libcvd co -D “Fri Sep 5 15:20:31 BST 2008” gvars3

The installation of these libraries is described below.

INSTALLATION

Installation of the dependencies

The three dependent libraries are all compiled and installed using the
familiar ./configure; make; make install system, however the following
points are worth noting.

On Linux, the following libraries (and their -devel versions) are
required: blas, lapack, perhaps libgfortran, ncurses and libreadline
(optional, for GVars3), libdc1394 (and maybe libraw1394)
for firewire capture, optionally libtiff, libjpeg, libpng.

(On OSX, these or their equivalents should all be available with the
system.)

The order of installation should be

  1. TooN, 2. libCVD, 3. GVars3;

TooN installation is trivial, since it’s only a bunch of headers.

For libCVD, I recommend the following configure options:
# export CXXFLAGS=-D_REENTRANT
# ./configure --without-ffmpeg

if the compiler hangs on one of the FAST detectors these can be
disabled with configure --disable-fast7 (for example.)
Documentation can be generated (if doxygen is installed) by running
# make docs

For GVars3, I recommend the following configure options:
# ./configure --disable-widgets

Compiling the Software

The source code is in the PTAM directory.

The first step is to copy the appropriate platform build files to the
PTAM source directory. Eg. for linux, copy all the files from
PTAM/Build/Linux to PTAM. The Makefile can then be edited to
reference any custom include or linker paths which might be necessary
(depending on where the dependencies were installed.)

The second step, for Linux, is to set up the correct video source. Two
files are provided, VideoSource_Linux_DV.cc and
VideoSource_Linux_V4L.cc, which work with the Unibrain Fire-i and the
Logitech Quickcam Pro 5000 respectively. The DV version is compiled by
default; edit the Makefile to switch to the V4L version instead, if
needed. Other cameras may require manual editing of the video input
files, e.g. to change the videobuffer’s colourspace.

Other video source classes are available with libCVD. Finally, if a
custom video source not supported by libCVD is required, the code for
it will have to be put into some VideoSource_XYZ.cc file (the
interface for this file is very simple.)

The software can then be compiled with the command
# make

This builds two target executables: PTAM and CameraCalibrator.

</GRABBED FROM README>

[quote author=“halfdanj”]Hi

I’m trying to compile it for mac, following the readme file, but i’m stuck at compiling gvars3… I have downloaded the version the readme files suggests, and start by running ./configure --disable-widgets, followed by make, but make stops with the following error:

  
src/GUI_readline.cc: In static member function ‘static void* GVars3::spawn_readline_thread::proc(void*)’:  
src/GUI_readline.cc:69: error: ‘rl_event_hook’ was not declared in this scope  
src/GUI_readline.cc: In destructor ‘GVars3::spawn_readline_thread::~spawn_readline_thread()’:  
src/GUI_readline.cc:96: error: ‘rl_done’ was not declared in this scope  
src/GUI_readline.cc: In constructor ‘GVars3::readline_in_current_thread::readline_in_current_thread(const std::string&)’:  
src/GUI_readline.cc:117: error: ‘rl_event_hook’ was not declared in this scope  
src/GUI_readline.cc:118: error: ‘rl_set_keyboard_input_timeout’ was not declared in this scope  
make: *** [src/GUI_readline.o] Error 1  
  

Anybody knows what i have missed??

Jonas[/quote]

I’m getting the same error. Not sure what’s up…

So if you compile according to the readme there’s a few gotchas, gvars3 needs FLTK2 or somesuch thing. I had to svn fltk2 (do a search) then according to the readme in fltk2 run:
autoconf
make
but then be sure to (not stated in the readme):
make install

Now you should be able to compile Gvars3 with: sudo ./configure --enable-widgets --enable-fltk2 --without-readline

make
make install

PTAM still won’t compile, seems to have the wrong GL settings, ie. GL/gl.h

Changed GLhelper.h to OpenGL/gl.h & OpenGL/glu.h

New error:
MapMaker.cc:1134: error: no matching function for call to ‘normalize(TooN::Vector<3, …

Well, having no patience and wanting to see this in action I just commented out:
normalize
PTAM/mapMaker.cc : line 1134
PTAM/eyegame.cc : line 197

I’m sure that’ll cause grief later but for now, runs like a dream.

Macbook Pro 13"

argggg, this is driving me crazy. I’ve been trying for about 5 hours to compile this damn thing and nothing. It doesn’t help me being a (almost) complete n00b, but its the computers fault, i just know. its mocking me. All I want to do is do a simple display of a jpg or something when it detects an image. I’ve got artoolkit working great using the markers, but I want to expand beyond the black and white markers.
If anyone could help that would be GREAT.

hi,
i have found this thread when i googled for hints to compile PTAM using visual studio 2005. i got compilation problems with the gettype()-template in operators.hh.
somebody posted a link to a prepared port to visual studio (http://image.chonnam.ac.kr/scraps/share/PTAM.zip), but i can’t access because i am asked for username and password. can anybody tell me the credentials or give me a link to another resource where i can download that great work or an explanation how to compile PTAM on windows (the readme didn’t help)?

does PTAM run on snow leopard.
It compiled successfully on my machine.
But running camera calibrator eighter from x11 or normal terminal gives me:


Parallel tracking and mapping for Small AR workspaces
Copyright © Isis Innovation Limited 2008

Parsing calibrator_settings.cfg …

X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 1 (X_CreateWindow)
Value in failed request: 0x0
Serial number of failed request: 20
Current serial number in output stream: 23

any idea?
Im really stuck here.
because I guess i have x11 and the x11 sdk installed. otherwise it wouldnt compile would it?

Hi every body,

I compiled PTAM on windows OS and modified some files for usb camera support. I can run calibration and PTAM exetuable files but I have a very slow frame rate. I have a core i5 750 and a nVidia GT 240 so it should run great. I saw other people having this issue, anything new ?

Tkx

Hi XTinX can you please post the modified code to be able to run on windows OS? i’ve been trying with no success

I’m only getting one error when I compile on OSX 10.5

“dyld: Library not loaded: libGVars3-0.6.dylib
Reason: image not found
Trace/BPT trap
logout”

Anybody have any idea on what this mean, and how I might be able to fix it?

Compiled, adding LAPACK link dependency to make file, but Have no idea about the video source. have dell inspiron 1545 w/ integrated webcam. PTAM will compile, but will not start with no video config.

I was able to get mine to work-

I had to reinstall the drivers for the gvars, and it’s running. I did have a difficult time getting the camera to be seen by PTAM… i used an iSight, and it picked it up. Any other non-firewire camera, it couldn’t find, and it didn’t seem to like anything that wasn’t 720x480 NTSC

The original PTAM is limited, but the PTAMM project (which apparently is linux only) looks to be something that is also open source, and is much more advanced.

http://www.robots.ox.ac.uk/~bob/researc-…-ptamm.html

Anyone know if this could work for MAC? Anybody interested in developing this?

let me know

As you may know, Oxford’s Active Vision Group has recently made a new code release called PTAMM. I have written a walkthrough for installing it on Ubuntu 9.10 on a Macbook Pro that may be very useful to those having issues here.

http://www.minus-reality.com/?p=1

How did you make that?

Hey guess I need some help on PTAMM

I followed the advice on minus reality but I am getting the following errors pls be easy as i am a total newbie on linux!.

g++ main.cc -o main.o -c -I MY_CUSTOM_INCLUDE_PATH -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -fno-strict-aliasing -DENABLE_MODELS_GAME
main.cc:5:30: error: gvars3/instances.h: No such file or directory
In file included from System.h:13,
from main.cc:6:
VideoSource.h:15:23: error: cvd/image.h: No such file or directory
VideoSource.h:16:22: error: cvd/byte.h: No such file or directory
VideoSource.h:17:21: error: cvd/rgb.h: No such file or directory
In file included from System.h:14,
from main.cc:6:
GLWindow2.h:11:26: error: cvd/glwindow.h: No such file or directory
In file included from System.h:13,
from main.cc:6:
VideoSource.h:27: error: ‘CVD’ has not been declared
VideoSource.h:27: error: expected ‘,’ or ‘…’ before ‘<’ token
VideoSource.h:28: error: ‘CVD’ has not been declared
VideoSource.h:28: error: ISO C++ forbids declaration of ‘ImageRef’ with no type
VideoSource.h:28: error: expected ‘;’ before ‘Size’
VideoSource.h:32: error: ‘CVD’ has not been declared
VideoSource.h:32: error: ISO C++ forbids declaration of ‘ImageRef’ with no type
VideoSource.h:32: error: expected ‘;’ before ‘mirSize’
In file included from System.h:14,
from main.cc:6:
GLWindow2.h:20: error: ‘CVD’ has not been declared
GLWindow2.h:20: error: expected ‘{’ before ‘GLWindow’
GLWindow2.h:20: error: invalid type in declaration before ‘,’ token
GLWindow2.h:20: error: expected unqualified-id before ‘public’
In file included from main.cc:6:
System.h:52: error: field ‘mGLWindow’ has incomplete type
System.h:53: error: ‘CVD’ has not been declared
System.h:53: error: ISO C++ forbids declaration of ‘Image’ with no type
System.h:53: error: expected ‘;’ before ‘<’ token
System.h:54: error: ‘CVD’ has not been declared
System.h:54: error: ISO C++ forbids declaration of ‘Image’ with no type
System.h:54: error: expected ‘;’ before ‘<’ token
System.h:67: error: ‘GVars3’ has not been declared
System.h:67: error: ISO C++ forbids declaration of ‘gvar3’ with no type
System.h:67: error: expected ‘;’ before ‘<’ token
System.h:68: error: ‘GVars3’ has not been declared
System.h:68: error: ISO C++ forbids declaration of ‘gvar3’ with no type
System.h:68: error: expected ‘;’ before ‘<’ token
System.h:71: error: ‘GVars3’ has not been declared
System.h:71: error: ISO C++ forbids declaration of ‘gvar3’ with no type
System.h:71: error: expected ‘;’ before ‘<’ token
System.h:72: error: ‘GVars3’ has not been declared
System.h:72: error: ISO C++ forbids declaration of ‘gvar3’ with no type
System.h:72: error: expected ‘;’ before ‘<’ token
main.cc:10: error: ‘GVars3’ is not a namespace-name
main.cc:10: error: expected namespace-name before ‘;’ token
main.cc: In function ‘int main()’:
main.cc:21: error: ‘GUI’ was not declared in this scope
main.cc:31: error: expected type-specifier before ‘CVD’
main.cc:31: error: expected ‘)’ before ‘::’ token
main.cc:31: error: expected ‘{’ before ‘::’ token
main.cc:31: error: ‘::Exceptions’ has not been declared
main.cc:31: error: expected ‘;’ before ‘e’
make: *** [main.o] Error 1

Any help@ all wud be highly appreciated !

Cheers!