Statistics for Programmable Aperture Photography: An investigation into applications and methods