3D Reconstruction of Indoor Scenes using a Single RGB-D Image