Lines Matching refs:idx
454 return ((CvSparseVecElem32f*)a)->idx - ((CvSparseVecElem32f*)b)->idx;
461 CvMat* idx = 0;
527 CV_CALL( idx = cvCreateMat( 1, idx_selected, CV_32SC1 ));
528 dsti = idx->data.i;
558 cvReleaseMat( &idx );
560 return idx;
618 int idx = map ? map[i] : i;
619 assert( (unsigned)idx < (unsigned)tm_size );
620 dst[i] = (uchar)(src[idx*tm_step] != 0);
684 int idx = map ? map[i] : i;
685 assert( (unsigned)idx < (unsigned)sample_all );
686 dst[i] = src[idx*r_step];
694 int idx = map ? map[i] : i;
695 assert( (unsigned)idx < (unsigned)sample_all );
696 dst[i] = (float)src[idx*r_step];
773 int idx = map ? map[i] : i;
774 assert( (unsigned)idx < (unsigned)sample_all );
776 dst[i] = srci[idx*r_step];
779 float rf = srcfl[idx*r_step];
784 sprintf( buf, "response #%d is not integral", idx );
1248 dst[dims_selected].idx = -1;
1251 dst[i].idx = i;
1280 int idx = *CV_NODE_IDX( sparse, node );
1283 idx = inverse_comp_idx[idx];
1284 if( idx < 0 )
1287 row_sample[idx] = *(float*)CV_NODE_VAL( sparse, node );
1296 int idx = *CV_NODE_IDX( sparse, node );
1299 idx = inverse_comp_idx[idx];
1300 if( idx < 0 )
1303 ptr->idx = idx;
1310 ptr->idx = -1;
1332 CvSize size, int* idx )
1351 // if there is no "idx" and if both arrays are continuous,
1353 if( !idx && CV_ELEM_SIZE(src_type)*size.width == src_step &&
1366 *(int*)(dst + dst_step*(idx ? idx[i] : i)) = *(int*)src;
1369 memcpy( dst + dst_step*(idx ? idx[i] : i), src, full_width );
1374 uchar* _dst = dst + dst_step*(idx ? idx[i] : i);
1385 uchar* _dst = dst + dst_step*(idx ? idx[i] : i);
1397 uchar* _dst = dst + dst_step*(idx ? idx[i] : i);
1663 int* idx = CV_NODE_IDX( sparse, node );
1664 int idx0 = idx[tflag ^ 1];
1665 int idx1 = idx[tflag];
1677 int idx = i;
1684 idx = sample_idx->data.i[i*sample_idx_step];
1685 if( (unsigned)idx >= (unsigned)samples_all )
1696 cvGetRow( predict_input, &predict_input_part, idx );
1699 cvGetCol( predict_input, &predict_input_part, idx );
1703 sample = sparse_rows[idx];
1706 cvGetRow( probs, probs1, idx );
1711 predict_output->data.fl[idx*predict_output_step] = response;
1715 predict_output->data.i[idx*predict_output_step] = cvRound(response);