MCPcopy Create free account
hub / github.com/devilsen/CZXing / load

Function load

czxing/src/main/cpp/include/opencv2/core.hpp:3190–3199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3188 FileNode& fn).
3189 */
3190 template<typename _Tp> static Ptr<_Tp> load(const String& filename, const String& objname=String())
3191 {
3192 FileStorage fs(filename, FileStorage::READ);
3193 CV_Assert(fs.isOpened());
3194 FileNode fn = objname.empty() ? fs.getFirstTopLevelNode() : fs[objname];
3195 if (fn.empty()) return Ptr<_Tp>();
3196 Ptr<_Tp> obj = _Tp::create();
3197 obj->read(fn);
3198 return !obj->empty() ? obj : Ptr<_Tp>();
3199 }
3200
3201 /** @brief Loads algorithm from a String
3202

Callers 1

HOGDescriptorFunction · 0.85

Calls 3

createFunction · 0.50
emptyMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected