A Flexible Scene Representation for 3D Reconstruction Using an RGB-D Camera