Lines Matching refs:idx
816 int idx = cvFloor((j - a)*scale);
817 if( (unsigned)idx < (unsigned)sz )
818 idx *= step;
820 idx = ICV_HIST_DUMMY_IDX;
822 tab[i*(hi - lo) + j - lo] = idx;
831 int idx = -1, write_idx = ICV_HIST_DUMMY_IDX, sz = size[i];
846 if( (unsigned)(++idx) < (unsigned)sz )
848 limit = hist->thresh2[i][idx+1];
851 write_idx = idx*step;
940 int idx = tab[i];
941 if( idx >= 0 )
942 bins[idx] += tab1d[i];
957 int idx = tab[v0] + tab[256+v1];
959 if( idx >= 0 )
960 bins[idx]++;
972 int idx = tab[v0] + tab[256+v1];
974 if( idx >= 0 )
975 bins[idx]++;
995 int idx = tab[v0] + tab[256+v1] + tab[512+v2];
997 if( idx >= 0 )
998 bins[idx]++;
1010 int idx = tab[v0] + tab[256+v1] + tab[512+v2];
1012 if( idx >= 0 )
1013 bins[idx]++;
1030 int idx = tab[i*256 + img[i][x]];
1031 if( idx < 0 )
1033 binptr += idx;
1048 int idx = tab[i*256 + img[i][x]];
1049 if( idx < 0 )
1051 binptr += idx;
1078 int idx = tab[i*256 + img[i][x]];
1079 if( idx < 0 )
1081 node_idx[i] = idx;
1098 int idx = tab[i*256 + img[i][x]];
1099 if( idx < 0 )
1101 node_idx[i] = idx;
1259 int idx = cvFloor((double)img[i][x]*uni_range[i][0]
1261 if( (unsigned)idx >= (unsigned)histsize[i] )
1263 binptr += idx*(mat->dim[i].step/sizeof(float));
1278 int idx = cvFloor((double)img[i][x]*uni_range[i][0]
1280 if( (unsigned)idx >= (unsigned)histsize[i] )
1282 binptr += idx*(mat->dim[i].step/sizeof(float));
1309 int idx = -1, sz = histsize[i];
1311 while( v >= thresh[idx+1] && ++idx < sz )
1314 if( (unsigned)idx >= (unsigned)sz )
1317 binptr += idx*(mat->dim[i].step/sizeof(float));
1346 int idx = cvFloor(img[i][x]*uni_range[i][0]
1348 if( (unsigned)idx >= (unsigned)histsize[i] )
1350 node_idx[i] = idx;
1370 int idx = -1, sz = histsize[i];
1372 while( v >= thresh[idx+1] && ++idx < sz )
1375 if( (unsigned)idx >= (unsigned)sz )
1378 node_idx[i] = idx;
1602 int idx = tab[i];
1603 if( idx >= 0 )
1605 int v = cvRound(bins[idx]);
1647 int idx = tab[v0] + tab[256+v1];
1650 if( idx >= 0 )
1651 v = buffer[idx];
1662 int idx = tab[v0] + tab[256+v1];
1665 if( idx >= 0 )
1667 v = cvRound(bins[idx]);
1691 int idx = tab[v0] + tab[256+v1] + tab[512+v2];
1694 if( idx >= 0 )
1695 v = buffer[idx];
1707 int idx = tab[v0] + tab[256+v1] + tab[512+v2];
1710 if( idx >= 0 )
1712 v = cvRound(bins[idx]);
1732 int idx = tab[i*256 + img[i][x]];
1733 if( idx < 0 )
1735 binptr += idx;
1753 int idx = tab[i*256 + img[i][x]];
1754 if( idx < 0 )
1756 binptr += idx;
1789 int idx = tab[i*256 + img[i][x]];
1790 if( idx < 0 )
1792 node_idx[i] = idx;
1933 int idx = cvFloor(img[i][x]*uni_range[i][0]
1935 if( (unsigned)idx >= (unsigned)histsize[i] )
1937 binptr += idx*(mat->dim[i].step/sizeof(float));
1961 int idx = -1, sz = histsize[i];
1963 while( v >= thresh[idx+1] && ++idx < sz )
1966 if( (unsigned)idx >= (unsigned)sz )
1969 binptr += idx*(mat->dim[i].step/sizeof(float));
1995 int idx = cvFloor(img[i][x]*uni_range[i][0]
1997 if( (unsigned)idx >= (unsigned)histsize[i] )
1999 node_idx[i] = idx;
2018 int idx = -1, sz = histsize[i];
2020 while( v >= thresh[idx+1] && ++idx < sz )
2023 if( (unsigned)idx >= (unsigned)sz )
2026 node_idx[i] = idx;