Skip to content

Conversation

msokoloff1
Copy link
Contributor

@msokoloff1 msokoloff1 commented Sep 12, 2021

If an array is non-contiguous then opencv drawing functions return opencv matrix objects instead of numpy arrays. Adding np.ascontiguous array prevents this situation from occuring. It also doesn't do anything unless the array is non-contiguous so there isn't any extra overhead for adding this each time.

Copy link
Contributor

@paulnoirel paulnoirel left a comment

Choose a reason for hiding this comment

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

looks fine

@msokoloff1 msokoloff1 merged commit c18c0f4 into develop Sep 14, 2021
@msokoloff1 msokoloff1 deleted the ms/large-image-drawing branch September 14, 2021 14:34
msokoloff1 added a commit that referenced this pull request Feb 6, 2022
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.

2 participants