The localization and tracking code from my paper "Wide-area scene mapping for mobile visual tracking" is available under BSD license at GitHub. An example dataset is also available for download (about 400 MB).