Assigns new value to specifed element of 3D array
| 2210 | |
| 2211 | // Assigns new value to specifed element of 3D array |
| 2212 | CV_IMPL void |
| 2213 | cvSet3D( 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 |
nothing calls this directly
no test coverage detected