Skip to content

consistent drawing behavior#284

Merged
msokoloff1 merged 1 commit intodevelopfrom
ms/large-image-drawing
Sep 14, 2021
Merged

consistent drawing behavior#284
msokoloff1 merged 1 commit intodevelopfrom
ms/large-image-drawing

Conversation

@msokoloff1
Copy link
Copy Markdown
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.

@msokoloff1 msokoloff1 requested a review from lb-pno September 14, 2021 14:29
Copy link
Copy Markdown
Contributor

@lb-pno lb-pno 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