Foundations of Image Science