Commit 56cf08a8 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

made "filestorage << vector<Mat>" work properly.

parent 0243fe6b
......@@ -978,8 +978,7 @@ public:
typedef value_type channel_type;
typedef value_type vec_type;
enum { generic_type = 1, depth = DataDepth<channel_type>::value, channels = 1,
fmt=DataDepth<channel_type>::fmt,
enum { generic_type = 1, depth = -1, channels = 1, fmt=0,
type = CV_MAKETYPE(depth, channels) };
};
......
......@@ -2638,7 +2638,7 @@ template<typename _Tp> static inline void write( FileStorage& fs, const vector<_
template<typename _Tp> static inline FileStorage&
operator << ( FileStorage& fs, const vector<_Tp>& vec )
{
VecWriterProxy<_Tp, DataType<_Tp>::fmt != 0> w(&fs);
VecWriterProxy<_Tp, DataType<_Tp>::generic_type == 0> w(&fs);
w(vec);
return fs;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment