Theory of Image Understanding