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

Prevent incorrectly serializing strided opencv::Mat_. #1005

Closed
1uc opened this issue May 17, 2024 · 2 comments
Closed

Prevent incorrectly serializing strided opencv::Mat_. #1005

1uc opened this issue May 17, 2024 · 2 comments

Comments

@1uc
Copy link
Collaborator

1uc commented May 17, 2024

The n-dimensional opencv::Mat_<T> is kinda generically stridded, see
https://docs.opencv.org/3.4/d3/d63/classcv_1_1Mat.html#details

Therefore, it's not safe to perform a raw read/write of of m.data().

@1uc 1uc changed the title Prevent incorrectly serializing non-row major opencv::Mat_. Prevent incorrectly serializing strided opencv::Mat_. May 17, 2024
@1uc
Copy link
Collaborator Author

1uc commented May 24, 2024

The experimental OpenCV support in core will throw on simple examples of this issue. Can be close together with #958.

@1uc 1uc closed this as completed Jun 21, 2024
@1uc
Copy link
Collaborator Author

1uc commented Jun 21, 2024

See #1016

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

1 participant