eos 1.4.0
|
Serialisation of OpenCV cv::Mat
matrices for the serialisation library cereal (http://uscilab.github.io/cereal/index.html).
More...
Functions | |
template<class Archive , cereal::traits::DisableIf< cereal::traits::is_text_archive< Archive >::value > = cereal::traits::sfinae> | |
void | save (Archive &ar, const cv::Mat &mat) |
Serialise a cv::Mat using cereal. | |
template<class Archive , cereal::traits::DisableIf< cereal::traits::is_text_archive< Archive >::value > = cereal::traits::sfinae> | |
void | load (Archive &ar, cv::Mat &mat) |
De-serialise a cv::Mat using cereal. | |
template<class Archive > | |
void | serialize (Archive &ar, cv::Vec2f &vec) |
Serialisation of a cv::Vec2f using cereal. | |
Serialisation of OpenCV cv::Mat
matrices for the serialisation library cereal (http://uscilab.github.io/cereal/index.html).
Contains serialisation for cv::Mat
matrices to binary archives, and serialisation of cv::Vec2f.
Contains also an experimental serialisation to save/load cv::Mat's from JSON.
void cv::load | ( | Archive & | ar, |
cv::Mat & | mat | ||
) |
De-serialise a cv::Mat using cereal.
De-serialise a cv::Mat using cereal, for text archives (JSON specifically).
Supports all types of matrices as well as non-contiguous ones.
[in] | ar | The archive to deserialise from. |
[in] | mat | The matrix to deserialise into. |
Experimental: This specialisation is enabled for text archives (e.g. XML, JSON), and was created to convert the JSON output from the BFM Matlab converter script to a cereal binary model. See the notes of the save() method!
[in] | ar | The archive to deserialise from. |
[in] | mat | The matrix to deserialise into. |
void cv::save | ( | Archive & | ar, |
const cv::Mat & | mat | ||
) |
Serialise a cv::Mat using cereal.
Serialise a cv::Mat using cereal, for text archives (JSON specifically).
Supports all types of matrices as well as non-contiguous ones.
[in] | ar | The archive to serialise to. |
[in] | mat | The matrix to serialise. |
Experimental: This specialisation is enabled for text archives (e.g. XML, JSON), and was created to convert the JSON output from the BFM Matlab converter script to a cereal binary model.
Notes:
[in] | ar | The archive to serialise to. |
[in] | mat | The matrix to serialise. |
void cv::serialize | ( | Archive & | ar, |
cv::Vec2f & | vec | ||
) |
Serialisation of a cv::Vec2f using cereal.
[in] | ar | The archive to (de)serialise. |
[in] | vec | The vector to (de)serialise. |