-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
releasedIncluded in a releaseIncluded in a release
Description
Is your feature request related to a problem?
Cropping is a common transformation on images.
Desired solution
- Add a new method
croptoImagethat takes four parametersx- the x coordinate of the top-left corner of the bounding rectangley- the y coordinate of the top-left corner of the bounding rectanglewidth- the width of the bounding rectangleheight- the height of the bounding rectangle
- The method should return the cropped image but leave the original unchanged
As usual in image processing, the origin of the coordinate system should be the top-left corner of the image. The x-axis should increase to the right and the y-axis should go down.
Raise an error, if the bounding rectangle is not contained in the image.
Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
releasedIncluded in a releaseIncluded in a release
Type
Projects
Status
✔️ Done