OpenCV  4.10.0-dev
Open Source Computer Vision
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
persistence.hpp File Reference
#include "opencv2/core/types.hpp"
#include "opencv2/core/mat.hpp"
Include dependency graph for persistence.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  cv::FileNode
 File Storage Node class. More...
 
class  cv::FileNodeIterator
 used to iterate through sequences and mappings. More...
 
class  cv::FileStorage
 XML/YAML/JSON file storage class that encapsulates all the information necessary for writing or reading data to/from a file. More...
 

Namespaces

namespace  cv
 

Functions

bool cv::operator!= (const FileNodeIterator &it1, const FileNodeIterator &it2)
 
static ptrdiff_t cv::operator- (const FileNodeIterator &it1, const FileNodeIterator &it2)
 
static bool cv::operator< (const FileNodeIterator &it1, const FileNodeIterator &it2)
 
static FileStoragecv::operator<< (FileStorage &fs, char *value)
 Writes data to a file storage.
 
template<typename _Tp >
static FileStoragecv::operator<< (FileStorage &fs, const _Tp &value)
 Writes data to a file storage.
 
static FileStoragecv::operator<< (FileStorage &fs, const char *str)
 Writes data to a file storage.
 
FileStoragecv::operator<< (FileStorage &fs, const String &str)
 Writes string to a file storage.
 
bool cv::operator== (const FileNodeIterator &it1, const FileNodeIterator &it2)
 
template<typename _Tp >
static void cv::operator>> (const FileNode &n, _Tp &value)
 Reads data from a file storage.
 
static void cv::operator>> (const FileNode &n, DMatch &m)
 Reads DMatch from a file storage.
 
static void cv::operator>> (const FileNode &n, KeyPoint &kpt)
 Reads KeyPoint from a file storage.
 
template<typename _Tp >
static void cv::operator>> (const FileNode &n, std::vector< _Tp > &vec)
 Reads data from a file storage.
 
template<typename _Tp >
static FileNodeIteratorcv::operator>> (FileNodeIterator &it, _Tp &value)
 Reads data from a file storage.
 
template<typename _Tp >
static FileNodeIteratorcv::operator>> (FileNodeIterator &it, std::vector< _Tp > &vec)
 Reads data from a file storage.
 
template<typename _Tp , typename std::enable_if< std::is_enum< _Tp >::value >::type * = nullptr>
static void cv::read (const FileNode &node, _Tp &value, const _Tp &default_value=static_cast< _Tp >(0))
 
static void cv::read (const FileNode &node, bool &value, bool default_value)
 
template<typename _Tp >
static void cv::read (const FileNode &node, Complex< _Tp > &value, const Complex< _Tp > &default_value)
 
void cv::read (const FileNode &node, DMatch &value, const DMatch &default_value)
 
void cv::read (const FileNode &node, double &value, double default_value)
 
void cv::read (const FileNode &node, float &value, float default_value)
 
void cv::read (const FileNode &node, int &value, int default_value)
 
void cv::read (const FileNode &node, int64_t &value, int64_t default_value)
 
void cv::read (const FileNode &node, KeyPoint &value, const KeyPoint &default_value)
 
void cv::read (const FileNode &node, Mat &mat, const Mat &default_mat=Mat())
 
template<typename _Tp , int m, int n>
static void cv::read (const FileNode &node, Matx< _Tp, m, n > &value, const Matx< _Tp, m, n > &default_matx=Matx< _Tp, m, n >())
 
template<typename _Tp >
static void cv::read (const FileNode &node, Point3_< _Tp > &value, const Point3_< _Tp > &default_value)
 
template<typename _Tp >
static void cv::read (const FileNode &node, Point_< _Tp > &value, const Point_< _Tp > &default_value)
 
static void cv::read (const FileNode &node, Range &value, const Range &default_value)
 
template<typename _Tp >
static void cv::read (const FileNode &node, Rect_< _Tp > &value, const Rect_< _Tp > &default_value)
 
template<typename _Tp >
static void cv::read (const FileNode &node, Scalar_< _Tp > &value, const Scalar_< _Tp > &default_value)
 
static void cv::read (const FileNode &node, schar &value, schar default_value)
 
static void cv::read (const FileNode &node, short &value, short default_value)
 
template<typename _Tp >
static void cv::read (const FileNode &node, Size_< _Tp > &value, const Size_< _Tp > &default_value)
 
void cv::read (const FileNode &node, SparseMat &mat, const SparseMat &default_mat=SparseMat())
 
void cv::read (const FileNode &node, std::string &value, const std::string &default_value)
 
template<typename _Tp >
static void cv::read (const FileNode &node, std::vector< _Tp > &vec, const std::vector< _Tp > &default_value=std::vector< _Tp >())
 
static void cv::read (const FileNode &node, std::vector< DMatch > &vec, const std::vector< DMatch > &default_value)
 
static void cv::read (const FileNode &node, std::vector< KeyPoint > &vec, const std::vector< KeyPoint > &default_value)
 
static void cv::read (const FileNode &node, uchar &value, uchar default_value)
 
static void cv::read (const FileNode &node, ushort &value, ushort default_value)
 
template<typename _Tp , int cn>
static void cv::read (const FileNode &node, Vec< _Tp, cn > &value, const Vec< _Tp, cn > &default_value)
 
template<typename _Tp >
static void cv::read (FileNodeIterator &it, std::vector< _Tp > &vec, size_t maxCount=(size_t) INT_MAX)
 
template<typename _Tp >
static void cv::write (FileStorage &fs, const _Tp &value)
 
template<typename _Tp >
static void cv::write (FileStorage &fs, const Complex< _Tp > &c)
 
template<>
void cv::write (FileStorage &fs, const double &value)
 
template<>
void cv::write (FileStorage &fs, const float &value)
 
template<>
void cv::write (FileStorage &fs, const int &value)
 
template<typename _Tp , int m, int n>
static void cv::write (FileStorage &fs, const Matx< _Tp, m, n > &x)
 
template<typename _Tp >
static void cv::write (FileStorage &fs, const Point3_< _Tp > &pt)
 
template<typename _Tp >
static void cv::write (FileStorage &fs, const Point_< _Tp > &pt)
 
static void cv::write (FileStorage &fs, const Range &r)
 
template<typename _Tp >
static void cv::write (FileStorage &fs, const Rect_< _Tp > &r)
 
template<typename _Tp >
static void cv::write (FileStorage &fs, const Scalar_< _Tp > &s)
 
template<typename _Tp >
static void cv::write (FileStorage &fs, const Size_< _Tp > &sz)
 
template<typename _Tp >
static void cv::write (FileStorage &fs, const std::vector< _Tp > &vec)
 
template<typename _Tp , typename std::enable_if< std::is_enum< _Tp >::value >::type * = nullptr>
static void cv::write (FileStorage &fs, const String &name, const _Tp &val)
 
template<typename _Tp >
static void cv::write (FileStorage &fs, const String &name, const Complex< _Tp > &c)
 
static void cv::write (FileStorage &fs, const String &name, const DMatch &m)
 
static void cv::write (FileStorage &fs, const String &name, const KeyPoint &kpt)
 
void cv::write (FileStorage &fs, const String &name, const Mat &value)
 
template<typename _Tp , int m, int n>
static void cv::write (FileStorage &fs, const String &name, const Matx< _Tp, m, n > &x)
 
template<typename _Tp >
static void cv::write (FileStorage &fs, const String &name, const Point3_< _Tp > &pt)
 
template<typename _Tp >
static void cv::write (FileStorage &fs, const String &name, const Point_< _Tp > &pt)
 
static void cv::write (FileStorage &fs, const String &name, const Range &r)
 
template<typename _Tp >
static void cv::write (FileStorage &fs, const String &name, const Rect_< _Tp > &r)
 
template<typename _Tp >
static void cv::write (FileStorage &fs, const String &name, const Scalar_< _Tp > &s)
 
template<typename _Tp >
static void cv::write (FileStorage &fs, const String &name, const Size_< _Tp > &sz)
 
void cv::write (FileStorage &fs, const String &name, const SparseMat &value)
 
template<typename _Tp >
static void cv::write (FileStorage &fs, const String &name, const std::vector< _Tp > &vec)
 
template<typename _Tp >
static void cv::write (FileStorage &fs, const String &name, const std::vector< std::vector< _Tp > > &vec)
 
void cv::write (FileStorage &fs, const String &name, const String &value)
 
template<typename _Tp , int cn>
static void cv::write (FileStorage &fs, const String &name, const Vec< _Tp, cn > &v)
 
void cv::write (FileStorage &fs, const String &name, double value)
 
void cv::write (FileStorage &fs, const String &name, float value)
 
void cv::write (FileStorage &fs, const String &name, int value)
 
void cv::write (FileStorage &fs, const String &name, int64_t value)
 
template<>
void cv::write (FileStorage &fs, const String &value)
 
template<typename _Tp , int cn>
static void cv::write (FileStorage &fs, const Vec< _Tp, cn > &v)
 
void cv::writeScalar (FileStorage &fs, const String &value)
 
void cv::writeScalar (FileStorage &fs, double value)
 
void cv::writeScalar (FileStorage &fs, float value)
 
void cv::writeScalar (FileStorage &fs, int value)
 
void cv::writeScalar (FileStorage &fs, int64_t value)