added wrapped load function for python as suggested by gat3way
This commit is contained in:
@@ -1317,6 +1317,18 @@ Ptr<ANN_MLP> ANN_MLP::create()
|
||||
return makePtr<ANN_MLPImpl>();
|
||||
}
|
||||
|
||||
}}
|
||||
Ptr<ANN_MLP> ANN_MLP::load(const String& filepath)
|
||||
{
|
||||
FileStorage fs;
|
||||
fs.open(filepath, FileStorage::READ);
|
||||
|
||||
Ptr<ANN_MLP> ann = makePtr<ANN_MLPImpl>();
|
||||
|
||||
((ANN_MLPImpl*)ann.get())->read(fs.getFirstTopLevelNode());
|
||||
return ann;
|
||||
}
|
||||
|
||||
|
||||
}}
|
||||
|
||||
/* End of file. */
|
||||
|
||||
Reference in New Issue
Block a user