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

Function cvSetND

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

Assigns new value to specifed element of nD array

Source from the content-addressed store, hash-verified

2228
2229// Assigns new value to specifed element of nD array
2230CV_IMPL void
2231cvSetND( CvArr* arr, const int* idx, CvScalar scalar )
2232{
2233 int type = 0;
2234 uchar* ptr;
2235
2236 if( !CV_IS_SPARSE_MAT( arr ))
2237 ptr = cvPtrND( arr, idx, &type );
2238 else
2239 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, &type, -1, 0 );
2240 cvScalarToRawData( &scalar, ptr, type );
2241}
2242
2243
2244CV_IMPL void

Callers

nothing calls this directly

Calls 3

cvPtrNDFunction · 0.85
icvGetNodePtrFunction · 0.85
cvScalarToRawDataFunction · 0.85

Tested by

no test coverage detected