Home
last modified time | relevance | path

Searched refs:vtx_count (Results 1 – 3 of 3) sorted by relevance

/external/opencv3/modules/core/test/
Dtest_ds.cpp1877 int i, vtx_count = cvtest::randInt(rng) % max_struct_size; in create_random_graph() local
1878 int edge_count = cvtest::randInt(rng) % MAX(vtx_count*20, 1); in create_random_graph()
1887 for( i = 0; i < vtx_count; i++ ) in create_random_graph()
1890 assert( graph->active_count == vtx_count ); in create_random_graph()
1894 int j = cvtest::randInt(rng) % vtx_count; in create_random_graph()
1895 int k = cvtest::randInt(rng) % vtx_count; in create_random_graph()
1901 assert( graph->active_count == vtx_count && graph->edges->active_count <= edge_count ); in create_random_graph()
1939 int vtx_count = -1, edge_count = 0, edges[][3] = in run() local
1950 vtx_count = MAX( vtx_count, edges[i][0] ); in run()
1951 vtx_count = MAX( vtx_count, edges[i][1] ); in run()
[all …]
/external/opencv/cxcore/src/
Dcxpersistence.cpp4497 int i, k, vtx_count, edge_count; in icvWriteGraph() local
4503 vtx_count = cvGraphGetVtxCount( graph ); in icvWriteGraph()
4505 CV_CALL( flag_buf = (int*)cvAlloc( vtx_count*sizeof(flag_buf[0]))); in icvWriteGraph()
4526 cvWriteInt( fs, "vertex_count", vtx_count ); in icvWriteGraph()
4613 vtx_count = 0; in icvWriteGraph()
4617 ((CvGraphVtx*)reader.ptr)->flags = flag_buf[vtx_count++]; in icvWriteGraph()
4640 int flags, vtx_count, edge_count; in icvReadGraph() local
4657 vtx_count = cvReadIntByName( fs, node, "vertex_count", -1 ); in icvReadGraph()
4660 if( !flags_str || vtx_count == -1 || edge_count == -1 || !edge_dt ) in icvReadGraph()
4730 CV_CALL( vtx_buf = (CvGraphVtx**)cvAlloc( vtx_count * sizeof(vtx_buf[0]) )); in icvReadGraph()
[all …]
/external/opencv3/modules/core/src/
Dpersistence.cpp4432 int i, k, vtx_count, edge_count; in icvWriteGraph() local
4438 vtx_count = cvGraphGetVtxCount( graph ); in icvWriteGraph()
4440 flag_buf = (int*)cvAlloc( vtx_count*sizeof(flag_buf[0])); in icvWriteGraph()
4460 cvWriteInt( fs, "vertex_count", vtx_count ); in icvWriteGraph()
4547 vtx_count = 0; in icvWriteGraph()
4551 ((CvGraphVtx*)reader.ptr)->flags = flag_buf[vtx_count++]; in icvWriteGraph()
4568 int flags, vtx_count, edge_count; in icvReadGraph() local
4585 vtx_count = cvReadIntByName( fs, node, "vertex_count", -1 ); in icvReadGraph()
4588 if( !flags_str || vtx_count == -1 || edge_count == -1 || !edge_dt ) in icvReadGraph()
4674 vtx_buf = (CvGraphVtx**)cvAlloc( vtx_count * sizeof(vtx_buf[0]) ); in icvReadGraph()
[all …]