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

Function cvSetRealND

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

Source from the content-addressed store, hash-verified

2331
2332
2333CV_IMPL void
2334cvSetRealND( CvArr* arr, const int* idx, double value )
2335{
2336 int type = 0;
2337 uchar* ptr;
2338
2339 if( !CV_IS_SPARSE_MAT( arr ))
2340 ptr = cvPtrND( arr, idx, &type );
2341 else
2342 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, &type, -1, 0 );
2343
2344 if( CV_MAT_CN( type ) > 1 )
2345 CV_Error( CV_BadNumChannels, "cvSetReal* support only single-channel arrays" );
2346
2347 if( ptr )
2348 icvSetReal( value, ptr, type );
2349}
2350
2351
2352CV_IMPL void

Callers

nothing calls this directly

Calls 3

cvPtrNDFunction · 0.85
icvGetNodePtrFunction · 0.85
icvSetRealFunction · 0.85

Tested by

no test coverage detected