| 2331 | |
| 2332 | |
| 2333 | CV_IMPL void |
| 2334 | cvSetRealND( 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 | |
| 2352 | CV_IMPL void |
nothing calls this directly
no test coverage detected