Python: wrap Algorithm::read and Algorithm::write
This commit is contained in:
@@ -210,11 +210,15 @@ public:
|
||||
|
||||
virtual void write( FileStorage&) const;
|
||||
|
||||
virtual void read( const FileNode&);
|
||||
// see corresponding cv::Algorithm method
|
||||
CV_WRAP virtual void read( const FileNode&);
|
||||
|
||||
//! Return true if detector object is empty
|
||||
CV_WRAP virtual bool empty() const;
|
||||
CV_WRAP virtual String getDefaultName() const;
|
||||
|
||||
// see corresponding cv::Algorithm method
|
||||
CV_WRAP inline void write(const Ptr<FileStorage>& fs, const String& name = String()) const { Algorithm::write(fs, name); }
|
||||
};
|
||||
|
||||
/** Feature detectors in OpenCV have wrappers with a common interface that enables you to easily switch
|
||||
@@ -985,7 +989,8 @@ public:
|
||||
read(fs.root());
|
||||
}
|
||||
// Reads matcher object from a file node
|
||||
virtual void read( const FileNode& );
|
||||
// see corresponding cv::Algorithm method
|
||||
CV_WRAP virtual void read( const FileNode& );
|
||||
// Writes matcher object to a file storage
|
||||
virtual void write( FileStorage& ) const;
|
||||
|
||||
@@ -1012,6 +1017,10 @@ public:
|
||||
|
||||
CV_WRAP static Ptr<DescriptorMatcher> create( int matcherType );
|
||||
|
||||
|
||||
// see corresponding cv::Algorithm method
|
||||
CV_WRAP inline void write(const Ptr<FileStorage>& fs, const String& name = String()) const { Algorithm::write(fs, name); }
|
||||
|
||||
protected:
|
||||
/**
|
||||
* Class to work with descriptors from several images as with one merged matrix.
|
||||
|
||||
Reference in New Issue
Block a user