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

Function cvSet3D

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

Assigns new value to specifed element of 3D array

Source from the content-addressed store, hash-verified

2210
2211// Assigns new value to specifed element of 3D array
2212CV_IMPL void
2213cvSet3D( CvArr* arr, int z, int y, int x, CvScalar scalar )
2214{
2215 int type = 0;
2216 uchar* ptr;
2217
2218 if( !CV_IS_SPARSE_MAT( arr ))
2219 ptr = cvPtr3D( arr, z, y, x, &type );
2220 else
2221 {
2222 int idx[] = { z, y, x };
2223 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, &type, -1, 0 );
2224 }
2225 cvScalarToRawData( &scalar, ptr, type );
2226}
2227
2228
2229// Assigns new value to specifed element of nD array

Callers

nothing calls this directly

Calls 3

cvPtr3DFunction · 0.85
icvGetNodePtrFunction · 0.85
cvScalarToRawDataFunction · 0.85

Tested by

no test coverage detected