Optimization of a 3 D Scene Reconstruction Application