| 2310 | |
| 2311 | |
| 2312 | CV_IMPL void |
| 2313 | cvSetReal3D( 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 | |
| 2333 | CV_IMPL void |
nothing calls this directly
no test coverage detected