Globally Consistent Multi-Label Assignment on the Ray Space of 4D Light Fields