| 2350 | |
| 2351 | |
| 2352 | CV_IMPL void |
| 2353 | cvClearND( 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 | /****************************************************************************************\ |
nothing calls this directly
no test coverage detected