A polyhedral compiler for image processing hardware