MCPcopy Create free account
hub / github.com/creatale/node-dv / cvRead

Function cvRead

deps/opencv/modules/core/src/persistence.cpp:4998–5015  ·  view source on GitHub ↗

reads matrix, image, sequence, graph etc. */

Source from the content-addressed store, hash-verified

4996
4997/* reads matrix, image, sequence, graph etc. */
4998CV_IMPL void*
4999cvRead( CvFileStorage* fs, CvFileNode* node, CvAttrList* list )
5000{
5001 void* obj = 0;
5002 CV_CHECK_FILE_STORAGE( fs );
5003
5004 if( !node )
5005 return 0;
5006
5007 if( !CV_NODE_IS_USER(node->tag) || !node->info )
5008 CV_Error( CV_StsError, "The node does not represent a user object (unknown type?)" );
5009
5010 obj = node->info->read( fs, node );
5011 if( list )
5012 *list = cvAttrList(0,0);
5013
5014 return obj;
5015}
5016
5017
5018/* writes matrix, image, sequence, graph etc. */

Callers 5

icvReadSeqTreeFunction · 0.85
cvLoadFunction · 0.85
readObjMethod · 0.85
readFunction · 0.85
cvReadByNameFunction · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected