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

Function cvClearND

deps/opencv/modules/core/src/array.cpp:2352–2365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2350
2351
2352CV_IMPL void
2353cvClearND( CvArr* arr, const int* idx )
2354{
2355 if( !CV_IS_SPARSE_MAT( arr ))
2356 {
2357 int type;
2358 uchar* ptr;
2359 ptr = cvPtrND( arr, idx, &type );
2360 if( ptr )
2361 memset( ptr, 0, CV_ELEM_SIZE(type) );
2362 }
2363 else
2364 icvDeleteNode( (CvSparseMat*)arr, idx, 0 );
2365}
2366
2367
2368/****************************************************************************************\

Callers

nothing calls this directly

Calls 2

cvPtrNDFunction · 0.85
icvDeleteNodeFunction · 0.85

Tested by

no test coverage detected