I needed a Keras layer that crops the input 2d images. Seems like there are some people with the same needs, not sure it’s crucial to PR yet.
Take a look in this repo.
Update: 22 Aug 2016. This layer is merged into Keras. Just use it from