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

Function cvSetReal3D

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

Source from the content-addressed store, hash-verified

2310
2311
2312CV_IMPL void
2313cvSetReal3D( CvArr* arr, int z, int y, int x, double value )
2314{
2315 int type = 0;
2316 uchar* ptr;
2317
2318 if( !CV_IS_SPARSE_MAT( arr ))
2319 ptr = cvPtr3D( arr, z, y, x, &type );
2320 else
2321 {
2322 int idx[] = { z, y, x };
2323 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, &type, -1, 0 );
2324 }
2325 if( CV_MAT_CN( type ) > 1 )
2326 CV_Error( CV_BadNumChannels, "cvSetReal* support only single-channel arrays" );
2327
2328 if( ptr )
2329 icvSetReal( value, ptr, type );
2330}
2331
2332
2333CV_IMPL void

Callers

nothing calls this directly

Calls 3

cvPtr3DFunction · 0.85
icvGetNodePtrFunction · 0.85
icvSetRealFunction · 0.85

Tested by

no test coverage detected