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

Implement more imgproc functionality #152

Merged
merged 4 commits into from
Sep 28, 2024
Merged

Implement more imgproc functionality #152

merged 4 commits into from
Sep 28, 2024

Conversation

edgarriba
Copy link
Member

@edgarriba edgarriba commented Sep 28, 2024

fixes #148 #112

  • implement rgb_from_gray, bgr_from_rgb in rust
  • reorder signatures in add_weighted as i opencv
  • expose to python rgb_from_gray , bgr_from_rgb , gray_from_rgb , add_weighted , warp_perspective
  • add more python tests

@edgarriba edgarriba linked an issue Sep 28, 2024 that may be closed by this pull request
3 tasks
@edgarriba edgarriba merged commit 3ac7f8f into main Sep 28, 2024
9 checks passed
Err(_) => return Err(ImageError::ImageDataNotContiguous),
}
// - Return directly pyarray and use it in the Rust code
let data = match pyarray.to_vec() {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emilmgeorge tangential to #149 -- ideally we would like in python too to have zerop copies, especially that in the python case we need to allocate everytime the outputs, or find an anti-pattern for python to allow passing preallocated images :)

@edgarriba edgarriba deleted the gray-to-color branch January 2, 2025 06:53
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

Successfully merging this pull request may close these issues.

Implement rgb_from_grayscale Implement imgproc in Python
1 participant