Assigns new value to specifed element of nD array
| 2228 | |
| 2229 | // Assigns new value to specifed element of nD array |
| 2230 | CV_IMPL void |
| 2231 | cvSetND( CvArr* arr, const int* idx, CvScalar scalar ) |
| 2232 | { |
| 2233 | int type = 0; |
| 2234 | uchar* ptr; |
| 2235 | |
| 2236 | if( !CV_IS_SPARSE_MAT( arr )) |
| 2237 | ptr = cvPtrND( arr, idx, &type ); |
| 2238 | else |
| 2239 | ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, &type, -1, 0 ); |
| 2240 | cvScalarToRawData( &scalar, ptr, type ); |
| 2241 | } |
| 2242 | |
| 2243 | |
| 2244 | CV_IMPL void |
nothing calls this directly
no test coverage detected