made "filestorage << vector<Mat>" work properly.
This commit is contained in:
parent
0243fe6b07
commit
56cf08a873
@ -978,8 +978,7 @@ public:
|
|||||||
typedef value_type channel_type;
|
typedef value_type channel_type;
|
||||||
typedef value_type vec_type;
|
typedef value_type vec_type;
|
||||||
|
|
||||||
enum { generic_type = 1, depth = DataDepth<channel_type>::value, channels = 1,
|
enum { generic_type = 1, depth = -1, channels = 1, fmt=0,
|
||||||
fmt=DataDepth<channel_type>::fmt,
|
|
||||||
type = CV_MAKETYPE(depth, channels) };
|
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&
|
template<typename _Tp> static inline FileStorage&
|
||||||
operator << ( FileStorage& fs, const vector<_Tp>& vec )
|
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);
|
w(vec);
|
||||||
return fs;
|
return fs;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user