BlueBrain / HighFive

HighFive - Header-only C++ HDF5 interface
https://bluebrain.github.io/HighFive/
Boost Software License 1.0
673 stars 159 forks source link

Prevent incorrectly serializing strided `opencv::Mat_`. #1005

Closed 1uc closed 2 months ago

1uc commented 3 months ago

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 commented 3 months ago

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

1uc commented 2 months ago

See #1016