Lines Matching refs:idx
761 int idx;
772 for( idx = 0; idx < mat->hashsize; idx++ )
773 if( mat->hashtable[idx] )
775 node = iterator->node = (CvSparseNode*)mat->hashtable[idx];
779 iterator->curidx = idx;
789 icvGetNodePtr( CvSparseMat* mat, const int* idx, int* _type,
807 int t = idx[i];
828 if( idx[i] != nodeidx[i] )
873 CV_MEMCPY_INT( CV_NODE_IDX(mat,node), idx, mat->dims );
889 icvDeleteNode( CvSparseMat* mat, const int* idx, unsigned* precalc_hashval )
904 int t = idx[i];
925 if( idx[i] != nodeidx[i] )
1896 cvPtr1D( const CvArr* arr, int idx, int* _type )
1916 if( (unsigned)idx >= (unsigned)(mat->rows + mat->cols - 1) &&
1917 (unsigned)idx >= (unsigned)(mat->rows*mat->cols))
1922 ptr = mat->data.ptr + (size_t)idx*pix_size;
1928 row = idx, col = 0;
1930 row = idx/mat->cols, col = idx - row*mat->cols;
1938 int y = idx/width, x = idx - y*width;
1954 if((unsigned)idx >= (unsigned)size )
1960 ptr = mat->data.ptr + (size_t)idx*pix_size;
1970 int t = idx/sz;
1971 ptr += (idx - t*sz)*mat->dim[j].step;
1972 idx = t;
1981 ptr = icvGetNodePtr( (CvSparseMat*)arr, &idx, _type, 1, 0 );
1989 idx / m->size[i];
1990 _idx[i] = idx - t*m->size[i];
1991 idx = t;
2095 int idx[] = { y, x };
2096 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, _type, 1, 0 );
2137 int idx[] = { z, y, x };
2138 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, _type, 1, 0 );
2153 cvPtrND( const CvArr* arr, const int* idx, int* _type,
2161 if( !idx )
2165 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx,
2175 if( (unsigned)idx[i] >= (unsigned)(mat->dim[i].size) )
2177 ptr += (size_t)idx[i]*mat->dim[i].step;
2184 ptr = cvPtr2D( arr, idx[0], idx[1], _type );
2196 cvGet1D( const CvArr* arr, int idx )
2216 if( (unsigned)idx >= (unsigned)(mat->rows + mat->cols - 1) &&
2217 (unsigned)idx >= (unsigned)(mat->rows*mat->cols))
2220 ptr = mat->data.ptr + (size_t)idx*pix_size;
2223 ptr = cvPtr1D( arr, idx, &type );
2225 ptr = icvGetNodePtr( (CvSparseMat*)arr, &idx, &type, 0, 0 );
2263 int idx[] = { y, x };
2264 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, &type, 0, 0 );
2292 int idx[] = { z, y, x };
2293 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, &type, 0, 0 );
2306 cvGetND( const CvArr* arr, const int* idx )
2318 ptr = cvPtrND( arr, idx, &type );
2320 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, &type, 0, 0 );
2332 cvGetReal1D( const CvArr* arr, int idx )
2352 if( (unsigned)idx >= (unsigned)(mat->rows + mat->cols - 1) &&
2353 (unsigned)idx >= (unsigned)(mat->rows*mat->cols))
2356 ptr = mat->data.ptr + (size_t)idx*pix_size;
2359 ptr = cvPtr1D( arr, idx, &type );
2361 ptr = icvGetNodePtr( (CvSparseMat*)arr, &idx, &type, 0, 0 );
2405 int idx[] = { y, x };
2406 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, &type, 0, 0 );
2440 int idx[] = { z, y, x };
2441 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, &type, 0, 0 );
2460 cvGetRealND( const CvArr* arr, const int* idx )
2472 ptr = cvPtrND( arr, idx, &type );
2474 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, &type, 0, 0 );
2492 cvSet1D( CvArr* arr, int idx, CvScalar scalar )
2510 if( (unsigned)idx >= (unsigned)(mat->rows + mat->cols - 1) &&
2511 (unsigned)idx >= (unsigned)(mat->rows*mat->cols))
2514 ptr = mat->data.ptr + (size_t)idx*pix_size;
2517 ptr = cvPtr1D( arr, idx, &type );
2519 ptr = icvGetNodePtr( (CvSparseMat*)arr, &idx, &type, -1, 0 );
2553 int idx[] = { y, x };
2554 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, &type, -1, 0 );
2577 int idx[] = { z, y, x };
2578 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, &type, -1, 0 );
2588 cvSetND( CvArr* arr, const int* idx, CvScalar scalar )
2598 ptr = cvPtrND( arr, idx, &type );
2600 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, &type, -1, 0 );
2608 cvSetReal1D( CvArr* arr, int idx, double value )
2626 if( (unsigned)idx >= (unsigned)(mat->rows + mat->cols - 1) &&
2627 (unsigned)idx >= (unsigned)(mat->rows*mat->cols))
2630 ptr = mat->data.ptr + (size_t)idx*pix_size;
2633 ptr = cvPtr1D( arr, idx, &type );
2635 ptr = icvGetNodePtr( (CvSparseMat*)arr, &idx, &type, -1, 0 );
2674 int idx[] = { y, x };
2675 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, &type, -1, 0 );
2701 int idx[] = { z, y, x };
2702 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, &type, -1, 0 );
2715 cvSetRealND( CvArr* arr, const int* idx, double value )
2725 ptr = cvPtrND( arr, idx, &type );
2727 ptr = icvGetNodePtr( (CvSparseMat*)arr, idx, &type, -1, 0 );
2740 cvClearND( CvArr* arr, const int* idx )
2750 ptr = cvPtrND( arr, idx, &type );
2756 icvDeleteNode( (CvSparseMat*)arr, idx, 0 );