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

Multik equivalents for numpy [:, :, ::-1] #208

Open
Trevol opened this issue Aug 24, 2024 · 1 comment
Open

Multik equivalents for numpy [:, :, ::-1] #208

Trevol opened this issue Aug 24, 2024 · 1 comment

Comments

@Trevol
Copy link

Trevol commented Aug 24, 2024

Hi! Are there multik equivalents for numpy expressions listed below?
rgb_image = bgr_image[:, :, ::-1]
rgb_image = bgr_image[:, :, [2, 1, 0]]

Thanks.

@devcrocod
Copy link
Collaborator

Hi

Yes, there is
There's sl.bounds, and also Slice class
Negative indices are also supported.

In my opinion, this is not the best API for boundaries, so I'm considering improving it

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