To crop the image, we will make use of NumPy slicing, as shown in the following code:
dst_image = image[80:200, 230:330]
As mentioned before, the code for these geometric transformations corresponds to the geometric_image_transformations.py script.
To crop the image, we will make use of NumPy slicing, as shown in the following code:
dst_image = image[80:200, 230:330]
As mentioned before, the code for these geometric transformations corresponds to the geometric_image_transformations.py script.