I have an image and want to get somehow a new image which will be a rectangle region of the original image centered at the middle point of the original image. Say, the original image is 1000×1000 pixels and I want to get the region of the size 501×501 in the center the original image.
Any way to do it using Python 3 and/or matplotlib?
The
image.cropmethod from the PIL library seems to be up the task:http://effbot.org/imagingbook/image.htm
For example: