This is a light field refocusing algorithm calculated in the spatial domain.
input/
: Put your sub-aperture images here.matlab/
: Runmain.m
.cpp/
: Modify your OpenCV version and library path, then openrefocus.sln
and run.
Ng, Ren, et al. Light field photography with a hand-held plenoptic camera. Diss. Stanford university, 2005.