Optimization of the number of rays in interpolation for light field