reads matrix, image, sequence, graph etc. */
| 4996 | |
| 4997 | /* reads matrix, image, sequence, graph etc. */ |
| 4998 | CV_IMPL void* |
| 4999 | cvRead( 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. */ |
no test coverage detected