Estimation of the plenoptic function from a swiped image