diff --git a/modules/core/include/opencv2/core/persistence.hpp b/modules/core/include/opencv2/core/persistence.hpp index 17686dd0d9..9cf3bca1c7 100644 --- a/modules/core/include/opencv2/core/persistence.hpp +++ b/modules/core/include/opencv2/core/persistence.hpp @@ -1130,6 +1130,23 @@ void operator >> (const FileNode& n, std::vector<_Tp>& vec) it >> vec; } +/** @brief Reads KeyPoint from a file storage. +*/ +//It needs special handling because it contains two types of fields, int & float. +static inline +void operator >> (const FileNode& n, std::vector& vec) +{ + read(n, vec); +} +/** @brief Reads DMatch from a file storage. +*/ +//It needs special handling because it contains two types of fields, int & float. +static inline +void operator >> (const FileNode& n, std::vector& vec) +{ + read(n, vec); +} + //! @} FileNode //! @relates cv::FileNodeIterator