Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to crop/cut? #53

Closed
vans163 opened this issue Mar 22, 2022 · 3 comments
Closed

How to crop/cut? #53

vans163 opened this issue Mar 22, 2022 · 3 comments

Comments

@vans163
Copy link

vans163 commented Mar 22, 2022

In python its

import cv2
img = cv2.imread("lenna.png")
crop_img = img[y:y+h, x:x+w]
cv2.imshow("cropped", crop_img)
cv2.waitKey(0)
@cocoa-xu
Copy link
Owner

No direct way to do this at the moment. To crop/cut an image you need to use one or multiple functions from Nx (which also means the image will need to be converted to an Nx tensor first).

@cocoa-xu
Copy link
Owner

A similar function (and other image manipulation operations) will be considered and implemented in #48.

@cocoa-xu
Copy link
Owner

This issue will be tracked in #48.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants