Foundations of Computational Imaging - A Model-Based Approach