Giter Club home page Giter Club logo

pixelstruct's Introduction

ABOUT
PixelStruct[1] is an opensource tool for visualizing 3D scenes reconstructed
from photographs. It uses the opensource structure-from-motion system
Bundler[2], which is based on the same research as Microsoft Live Labs
Photosynth[3].

HOW TO COMPILE
PixelStruct requires the following libraries:
 - Qt4 (with OpenGL support)
 - CGAL

You will also need to install CMake in order to build PixelStruct.

All of the above can be installed in Ubuntu (and likely other Debian-based
distributions) by running
    sudo aptitude install libqt4-dev libcgal-dev cmake

Once you have installed these, compile the program by running `make` in the
project root directory.

This will create a binary called 'pixelstruct' in the current directory.
You can either copy this executable into your PATH for system-wide access, or
just run it immediately by either calling `./pixelstruct` in a terminal or by
opening it with your file browser.

USAGE
PixelStruct requires Bundler, which can be downloaded from [2]. First, you need
to manually run Bundler on a directory of images as described in the README.txt
file contained in the Bundler distribution. Once Bundler has completed
processing the images, the image set can be loaded into PixelStruct.

If you do not want to manually run Bundler, and would rather view a
pre-processed dataset, you have two options:
- download the small (3.6MB) Kermit example from [4], untar it, and open the
  kermit/ directory in PixelStruct
- download the very large (1.8GB) Notre Dame example from [5], unzip it, create
  a bundle/ directory inside the NotreDame/ directory, copy/move notredame.out
  to bundle/bundle.out, and open the NotreDame/ directory in PixelStruct

To view a processed dataset, launch PixelStruct as described above, and go to
"File>Open image directory". Navigate into the image directory you ran Bundler
on, and hit "Choose"/"Open". Alternatively you can specify the image directory
as a command-line argument when launching PixelStruct. The 3D point cloud will
be loaded into the window, and once the viewer has focus (you may have to click
on it for this), the camera will focus on the first image.

You can now hit your Return key to move to the next image, or use your arrow
keys to move to another image in the chosen direction. Pressing Page Up and
Page Down will attempt to move the camera closer to and further away from the
photographed object respectively.

The View menu allows you to choose between several transition modes, as
described in section 5.3 of [6].

QPL-GPL INCOMPATIBILITY NOTICE
As portions of CGAL are licensed under the QPL[7] which is incompatible with
the GPL (see the QPL secction of [8]), the following notice is required:
  As a special exception, you have permission to link this program
  with the CGAL library and distribute executables, as long as you
  follow the requirements of the GNU GPL in regard to all of the
  software in the executable aside from CGAL.

[1] http://da.vidr.cc/projects/pixelstruct/
[2] http://phototour.cs.washington.edu/bundler/
[3] http://photosynth.net/
[4] http://pixelstruct.googlecode.com/files/kermit-example-bundler0.3.tar.gz
[5] http://phototour.cs.washington.edu/datasets/NotreDame.zip
[6] http://phototour.cs.washington.edu/Photo_Tourism.pdf
[7] http://doc.trolltech.com/4.3/qpl.html
[8] http://www.fsf.org/licensing/licenses/index_html

pixelstruct's People

Stargazers

Jeffrey avatar 902metalhead avatar  avatar Aiekick avatar  avatar  avatar  avatar  avatar  avatar  avatar Omar Imam avatar  avatar Shushi avatar Igor K avatar Stefan de Konink avatar  avatar David Yu avatar null avatar leiurayer avatar  avatar Nicolás Pace avatar Luca Penasa avatar Ellis Breen avatar  avatar Daren Welsh avatar James Hurlbut avatar Elijah Zu Bailey avatar Pawel Jonik avatar  avatar Nicolas Dedual avatar Gavin S avatar RJ Sheperd avatar Tom Lee avatar Dean Webb avatar Ben Lau avatar John D. Pope avatar Gopalakrishna Palem avatar  avatar Vincent Lecrubier avatar  avatar Petr Moravek avatar xyz avatar Nate Lawrence avatar  avatar  avatar

Watchers

David A Roberts avatar  avatar James Cloos avatar Chatchai Daecha avatar Safiulin Iskander avatar  avatar  avatar

pixelstruct's Issues

Feature request: pixelstruct as preprocessor for openphotovr


openphotovr is a flash based web application which allows people to 
crowd-source images of e.g. famous buildings.

see http://openphotovr.org/


Sadly, openphotovr doesn't have automatic matching of images. New images need 
to be added by hand.

The idea is use bundler to get the SfM right and use pixelstruct to et the data 
that is needed for openphotovr.

Maybe this is just a silly idea. :)

Original issue reported on code.google.com by [email protected] on 14 Mar 2011 at 11:07

Does not compile under Ubuntu 10.04

pixelstruct 0.2 doesn't compile under Ubuntu 10.04 (despite having  installed 
the required libraries).

What steps will reproduce the problem?
1. sudo aptitude install libqt4-dev libcgal-dev cmake
2. make

What is the expected output? What do you see instead?

Compilation breaks with the following statement:

[  7%] Building CXX object src/CMakeFiles/pixelstruct.dir/commonplane.cpp.o
In file included from 
/home/raphael/Desktop/pixelstruct/pixelstruct-0.2/src/commonplane.h:27,
                 from /home/raphael/Desktop/pixelstruct/pixelstruct-0.2/src/commonplane.cpp:16:
/usr/include/CGAL/linear_least_squares_fitting_3.h: In function ‘typename 
Kernel::FT CGAL::linear_least_squares_fitting_3(InputIterator, InputIterator, 
Object&, typename Kernel::Point_3&, const Tag&, const Kernel&) [with 
InputIterator = __gnu_cxx::__normal_iterator<const 
CGAL::Point_3<CGAL::Cartesian<double> >*, 
std::vector<CGAL::Point_3<CGAL::Cartesian<double> >, 
std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object = 
CGAL::Plane_3<CGAL::Cartesian<double> >, Kernel = 
CGAL::linear_least_squares_fitting_3(InputIterator, InputIterator, Object&, 
Point&, const Tag&) [with InputIterator = __gnu_cxx::__normal_iterator<const 
CGAL::Point_3<CGAL::Cartesian<double> >*, 
std::vector<CGAL::Point_3<CGAL::Cartesian<double> >, 
std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object = 
CGAL::Plane_3<CGAL::Cartesian<double> >, Point = 
CGAL::Point_3<CGAL::Cartesian<double> >, Tag = 
CGAL::Point_3<CGAL::Cartesian<double> >]::Kernel, Tag = 
CGAL::Point_3<CGAL::Cartesian<double> >]’:
/usr/include/CGAL/linear_least_squares_fitting_3.h:76:   instantiated from 
‘typename CGAL::Kernel_traits<Object>::Kernel::FT 
CGAL::linear_least_squares_fitting_3(InputIterator, InputIterator, Object&, 
Point&, const Tag&) [with InputIterator = __gnu_cxx::__normal_iterator<const 
CGAL::Point_3<CGAL::Cartesian<double> >*, 
std::vector<CGAL::Point_3<CGAL::Cartesian<double> >, 
std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object = 
CGAL::Plane_3<CGAL::Cartesian<double> >, Point = 
CGAL::Point_3<CGAL::Cartesian<double> >, Tag = 
CGAL::Point_3<CGAL::Cartesian<double> >]’

/usr/include/CGAL/linear_least_squares_fitting_3.h:93:   instantiated from 
‘typename CGAL::Kernel_traits<Object>::Kernel::FT 
CGAL::linear_least_squares_fitting_3(InputIterator, InputIterator, Object&, 
const Tag&) [with InputIterator = __gnu_cxx::__normal_iterator<const 
CGAL::Point_3<CGAL::Cartesian<double> >*, 
std::vector<CGAL::Point_3<CGAL::Cartesian<double> >, 
std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object = 
CGAL::Plane_3<CGAL::Cartesian<double> >, Tag = 
CGAL::Point_3<CGAL::Cartesian<double> >]’
/home/raphael/Desktop/pixelstruct/pixelstruct-0.2/src/commonplane.cpp:68:   
instantiated from here
/usr/include/CGAL/linear_least_squares_fitting_3.h:58: error: no matching 
function for call to 
‘linear_least_squares_fitting_3(__gnu_cxx::__normal_iterator<const 
CGAL::Point_3<CGAL::Cartesian<double> >*, 
std::vector<CGAL::Point_3<CGAL::Cartesian<double> >, 
std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >&, 
__gnu_cxx::__normal_iterator<const CGAL::Point_3<CGAL::Cartesian<double> >*, 
std::vector<CGAL::Point_3<CGAL::Cartesian<double> >, 
std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >&, 
CGAL::Plane_3<CGAL::Cartesian<double> >&, CGAL::Point_3<CGAL::Cartesian<double> 
>&, CGAL::linear_least_squares_fitting_3(InputIterator, InputIterator, Object&, 
typename Kernel::Point_3&, const Tag&, const Kernel&) [with InputIterator = 
__gnu_cxx::__normal_iterator<const CGAL::Point_3<CGAL::Cartesian<double> >*, 
std::vector<CGAL::Point_3<CGAL::Cartesian<double> >, 
std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object = 
CGAL::Plane_3<CGAL::Cartesian<double> >, Kernel = 
CGAL::linear_least_squares_fitting_3(InputIterator, InputIterator, Object&, 
Point&, const Tag&) [with InputIterator = __gnu_cxx::__normal_iterator<const 
CGAL::Point_3<CGAL::Cartesian<double> >*, 
std::vector<CGAL::Point_3<CGAL::Cartesian<double> >, 
std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object = 
CGAL::Plane_3<CGAL::Cartesian<double> >, Point = 
CGAL::Point_3<CGAL::Cartesian<double> >, Tag = 
CGAL::Point_3<CGAL::Cartesian<double> >]::Kernel, Tag = 
CGAL::Point_3<CGAL::Cartesian<double> >]::Value_type*, const 
CGAL::Cartesian<double>&, const CGAL::Point_3<CGAL::Cartesian<double> >&)’

The compilation process breaks stating the following:

What version of the product are you using? On what operating stem?

Ubuntu 10.04 (32 bit), g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3

Original issue reported on code.google.com by [email protected] on 14 Sep 2010 at 10:39

  • Merged into: #2

Request for Feature (HTTP Access to images, bundle)

Please add functionality to allow HTTP/FTP access to images & bundle.out

This would allow web pages to link to remote computers with breviously
boundled image directories, also would be great if pixelstruct could be
made a a firefox addon


thanks Grame

Original issue reported on code.google.com by [email protected] on 14 Jan 2010 at 2:57

qt4 + Parse error at "BOOST_JOIN"

I am seeing this with patched code by @sujitkumardora
usr/local/Cellar/boost/1.62.0/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"

screen shot 2016-12-01 at 10 38 03

https://bugreports.qt.io/browse/QTBUG-22829

brew install cartr/qt4/qt
brew link qt
brew install cgal
//using cgal-4.9
// boost/1.62.0
make

going to look at upgrading from qt4 to qt5
https://github.com/KDAB/Qt4to5.git

Does not compile on Ubuntu 9.10

In file included from .../pixelstruct-0.2/src/commonplane.h:27,
from .../pixelstruct-0.2/src/commonplane.cpp:16:
/usr/include/CGAL/linear_least_squares_fitting_3.h: In function ‘typename
Kernel::FT CGAL::linear_least_squares_fitting_3(InputIterator,
InputIterator, Object&, typename Kernel::Point_3&, const Tag&, const
Kernel&) [with InputIterator = __gnu_cxx::__normal_iterator<const
CGAL::Point_3<CGAL::Cartesian<double> >*,
std::vector<CGAL::Point_3<CGAL::Cartesian<double> >,
std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object =
CGAL::Plane_3<CGAL::Cartesian<double> >, Kernel =
CGAL::linear_least_squares_fitting_3(InputIterator, InputIterator, Object&,
Point&, const Tag&) [with InputIterator =
__gnu_cxx::__normal_iterator<const CGAL::Point_3<CGAL::Cartesian<double>
>*, std::vector<CGAL::Point_3<CGAL::Cartesian<double> >,
std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object =
CGAL::Plane_3<CGAL::Cartesian<double> >, Point =
CGAL::Point_3<CGAL::Cartesian<double> >, Tag =
CGAL::Point_3<CGAL::Cartesian<double> >]::Kernel, Tag =
CGAL::Point_3<CGAL::Cartesian<double> >]’:
/usr/include/CGAL/linear_least_squares_fitting_3.h:76: instantiated from
‘typename CGAL::Kernel_traits<Object>::Kernel::FT
CGAL::linear_least_squares_fitting_3(InputIterator, InputIterator, Object&,
Point&, const Tag&) [with InputIterator =
__gnu_cxx::__normal_iterator<const CGAL::Point_3<CGAL::Cartesian<double>
>*, std::vector<CGAL::Point_3<CGAL::Cartesian<double> >,
std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object =
CGAL::Plane_3<CGAL::Cartesian<double> >, Point =
CGAL::Point_3<CGAL::Cartesian<double> >, Tag =
CGAL::Point_3<CGAL::Cartesian<double> >]’
/usr/include/CGAL/linear_least_squares_fitting_3.h:93: instantiated from
‘typename CGAL::Kernel_traits<Object>::Kernel::FT
CGAL::linear_least_squares_fitting_3(InputIterator, InputIterator, Object&,
const Tag&) [with InputIterator = __gnu_cxx::__normal_iterator<const
CGAL::Point_3<CGAL::Cartesian<double> >*,
std::vector<CGAL::Point_3<CGAL::Cartesian<double> >,
std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object =
CGAL::Plane_3<CGAL::Cartesian<double> >, Tag =
CGAL::Point_3<CGAL::Cartesian<double> >]’
.../pixelstruct-0.2/src/commonplane.cpp:68: instantiated from here
/usr/include/CGAL/linear_least_squares_fitting_3.h:58: error: no matching
function for call to
‘linear_least_squares_fitting_3(__gnu_cxx::__normal_iterator<const
CGAL::Point_3<CGAL::Cartesian<double> >*,
std::vector<CGAL::Point_3<CGAL::Cartesian<double> >,
std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >&,
__gnu_cxx::__normal_iterator<const CGAL::Point_3<CGAL::Cartesian<double>
>*, std::vector<CGAL::Point_3<CGAL::Cartesian<double> >,
std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >&,
CGAL::Plane_3<CGAL::Cartesian<double> >&,
CGAL::Point_3<CGAL::Cartesian<double> >&,
CGAL::linear_least_squares_fitting_3(InputIterator, InputIterator, Object&,
typename Kernel::Point_3&, const Tag&, const Kernel&) [with InputIterator =
__gnu_cxx::__normal_iterator<const CGAL::Point_3<CGAL::Cartesian<double>
>*, std::vector<CGAL::Point_3<CGAL::Cartesian<double> >,
std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object =
CGAL::Plane_3<CGAL::Cartesian<double> >, Kernel =
CGAL::linear_least_squares_fitting_3(InputIterator, InputIterator, Object&,
Point&, const Tag&) [with InputIterator =
__gnu_cxx::__normal_iterator<const CGAL::Point_3<CGAL::Cartesian<double>
>*, std::vector<CGAL::Point_3<CGAL::Cartesian<double> >,
std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object =
CGAL::Plane_3<CGAL::Cartesian<double> >, Point =
CGAL::Point_3<CGAL::Cartesian<double> >, Tag =
CGAL::Point_3<CGAL::Cartesian<double> >]::Kernel, Tag =
CGAL::Point_3<CGAL::Cartesian<double> >]::Value_type*, const
CGAL::Cartesian<double>&, const CGAL::Point_3<CGAL::Cartesian<double> >&)’

Original issue reported on code.google.com by [email protected] on 18 Nov 2009 at 7:43

bindTexture QImage out of memory

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 15 Dec 2009 at 1:19

Windows build and update to GGAL v4.3

I'm evaluating pixelstruct for possible use in a 3D reconstruction project. As 
part of that work, I've made the attached changes, which allow building on 
Windows (VS 2012, 64-bit, shared libs). The patch also contains an updated 
FindCGAL.cmake that finds the current v4.3 release of CGAL.

Original issue reported on code.google.com by [email protected] on 2 Apr 2014 at 10:15

Attachments:

undefined reference to `__gmpn_mul'

While linking pixelstruct
triangulation.cpp:(.text+0x4dc): undefined reference to __gmpn_copyi'
...
triangulation.cpp:(.text.ZN4CGALmlERKNS_4MpzfES2[ZN4CGALmlERKNS_4MpzfES2]+0xe0): undefined reference to __gmpn_mul'

Solution: Link to gmp library in src/CMakeLists

[Triangulation::insert_point] caught std::logic_error from DelaunayTriangulation::insert

What steps will reproduce the problem?
1. use RunBundler.sh on imageset
2. open director in pixelstruct
3. error appears in console.

What is the expected output? What do you see instead?

Only a few of my images are accessible in pixelstruct, some generate the error 
when I try to access them.

What version of the product are you using? On what operating system?

Current CVS checkout, Debian squeeze

Please provide any additional information below.
./.

Original issue reported on code.google.com by [email protected] on 14 Mar 2011 at 11:02

Unable to open source directory

What steps will reproduce the problem?
1. File -> Open image directory
2. Select a directory with a bunch of JPG files and click Choose
3.

What is the expected output? What do you see instead?

I was expecting to get confirmation that the directory had been chosen.
Instead the pixelstruct window closes and I have the following error
message in my shell window:

"Unable to open file /.../KAP-2008-11-29-Waipio//bundle/bundle.out"

(The ... is the fqpn to that directory.)

I even tried pre-creating the "bundle" directory inside this directory, but
I got the same behavior from pixelstruct with the same error message.

What version of the product are you using? On what operating system?

pixelstruct-0.1 running on a Gentoo Linux computer:

Linux vix 2.6.26-gentoo-r4 #1 SMP Wed Dec 17 15:53:33 HST 2008 x86_64 AMD
Athlon(tm) 64 X2 Dual Core Processor 4400+ AuthenticAMD GNU/Linux

Please provide any additional information below.

These are the versions I'm running of the dependent libraries:

dev-python/PyQt4-4.4.4-r1
virtual/opengl-7.0
app-admin/eselect-opengl-1.0.6-r1
dev-python/pyopengl-2.0.0.44
x11-libs/qt-opengl-4.4.2


Original issue reported on code.google.com by [email protected] on 21 Mar 2009 at 5:31

OSX - CGAL/Triangulation_euclidean_traits_xy_3.h

brew install cartr/qt4/qt
brew link qt
brew install cgal
//using cgal-4.9

make

mkdir -p build
cd build && cmake .. && /Applications/Xcode-beta.app/Contents/Developer/usr/bin/make
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/johndpope/Documents/gitWorkspace/pixelstruct/build
[ 6%] Building CXX object src/CMakeFiles/pixelstruct.dir/main.cpp.o
clang: warning: optimization flag '-frounding-math' is not supported
In file included from /Users/johndpope/Documents/gitWorkspace/pixelstruct/src/main.cpp:18:
In file included from /Users/johndpope/Documents/gitWorkspace/pixelstruct/src/mainwindow.h:23:
In file included from /Users/johndpope/Documents/gitWorkspace/pixelstruct/src/glwidget.h:24:
/Users/johndpope/Documents/gitWorkspace/pixelstruct/src/triangulation.h:26:10: fatal error: 'CGAL/Triangulation_euclidean_traits_xy_3.h' file not found
#include <CGAL/Triangulation_euclidean_traits_xy_3.h>
^
1 error generated.
make[3]: *** [src/CMakeFiles/pixelstruct.dir/main.cpp.o] Error 1
make[2]: *** [src/CMakeFiles/pixelstruct.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.