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

rotated_rect_mask speedup #9

Merged
merged 1 commit into from Mar 15, 2022
Merged

Conversation

HTuennermann
Copy link

I want to use this package on data coming at 10Hz but found that the current version was too slow for this. After some profiling, I found that rotated_rect_mask is slow as it rotates the whole image instead of just drawing a rotated rectangle. I wrote an alternative implementation that does that.

I also added a test to make sure that the result is the same as for the normal implementation and changed depreciated np.float to float.

@scottprahl scottprahl merged commit b5a1df9 into scottprahl:master Mar 15, 2022
@scottprahl
Copy link
Owner

Looks good. I will need to add pillow to the requirements.txt file also.

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.

None yet

2 participants