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

Function icvAllocWSNodes

deps/opencv/modules/imgproc/src/segmentation.cpp:63–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61CvWSQueue;
62
63static CvWSNode*
64icvAllocWSNodes( CvMemStorage* storage )
65{
66 CvWSNode* n = 0;
67
68 int i, count = (storage->block_size - sizeof(CvMemBlock))/sizeof(*n) - 1;
69
70 n = (CvWSNode*)cvMemStorageAlloc( storage, count*sizeof(*n) );
71 for( i = 0; i < count-1; i++ )
72 n[i].next = n + i + 1;
73 n[count-1].next = 0;
74
75 return n;
76}
77
78
79CV_IMPL void

Callers

nothing calls this directly

Calls 1

cvMemStorageAllocFunction · 0.85

Tested by

no test coverage detected