Lines Matching refs:cdims
68 int cdims; member in CV_BaseHistTest
144 cdims = cvtest::randInt(rng) % max_cdims + 1; in get_hist_params()
146 max_dim_size = cvRound(pow(hist_size,1./cdims)); in get_hist_params()
151 for( i = 0; i < cdims; i++ ) in get_hist_params()
185 ranges.resize(cdims); in get_hist_ranges()
189 _ranges.resize(cdims*2); in get_hist_ranges()
190 for( int i = 0; i < cdims; i++ ) in get_hist_ranges()
200 for( i = 0; i < cdims; i++ ) in get_hist_ranges()
204 for( i = 0; i < cdims; i++ ) in get_hist_ranges()
260 for( i = 0; i < cdims; i++ ) in init_hist()
269 for( j = 0; j < cdims; j++ ) in init_hist()
292 hist[i] = cvCreateHist( cdims, dims, hist_type, r, uniform ); in prepare_test_case()
380 indices = cvCreateMat( 1, iters*cdims, CV_32S ); in prepare_test_case()
397 for( j = 0; j < cdims; j++ ) in prepare_test_case()
400 idx[i*cdims + j] = t; in prepare_test_case()
419 for( j = 0; j < cdims; j++ ) in prepare_test_case()
420 lin_idx = lin_idx*dims[j] + idx[i*cdims + j]; in prepare_test_case()
442 if( cdims == 1 ) in run_func()
458 else if( cdims == 2 ) in run_func()
474 else if( cdims == 3 ) in run_func()
497 cvSetRealND( h, idx+i*cdims, v0 ); in run_func()
499 *(float*)cvPtrND( h, idx+i*cdims ) = v0; in run_func()
503 if( cdims == 1 ) in run_func()
511 else if( cdims == 2 ) in run_func()
519 else if( cdims == 3 ) in run_func()
531 val[i] = *(float*)cvPtrND( h, idx+i*cdims ); in run_func()
533 val[i] = (float)cvGetRealND( h, idx+i*cdims ); in run_func()
561 for( j = 0; j < cdims; j++ ) in validate_test_results()
562 ts->printf( cvtest::TS::LOG, "%d%s", indices->data.i[i*cdims + j], in validate_test_results()
563 j < cdims-1 ? ", " : ")\n" ); in validate_test_results()
608 for( i = 0; i < cdims; i++ ) in init_hist()
667 for( i = 0; i < cdims; i++ ) in validate_test_results()
858 indices = cvCreateMat( 1, (orig_nz_count+1)*cdims, CV_32S ); in prepare_test_case()
868 for( k = 0; k < cdims; k++ ) in prepare_test_case()
869 indices->data.i[i*cdims + k] = idx[k]; in prepare_test_case()
910 v = (float)cvGetRealND( sparse, indices->data.i + i*cdims ); in validate_test_results()
911 cvClearND( sparse, indices->data.i + i*cdims ); in validate_test_results()
1181 if( i < cdims ) in prepare_test_case()
1216 int x, y, k, cdims; in cvTsCalcHist() local
1230 cdims = cvGetDims( hist->bins, dims ); in cvTsCalcHist()
1234 for( k = 0; k < cdims; k++ ) in cvTsCalcHist()
1248 for( k = 0; k < cdims; k++ ) in cvTsCalcHist()
1251 for( k = 0; k < cdims; k++ ) in cvTsCalcHist()
1262 for( k = 0; k < cdims; k++ ) in cvTsCalcHist()
1265 for( k = 0; k < cdims; k++ ) in cvTsCalcHist()
1268 idx[cdims-1] = -1; in cvTsCalcHist()
1272 for( k = 0; k < cdims; k++ ) in cvTsCalcHist()
1282 for( k = 0; k < cdims; k++ ) in cvTsCalcHist()
1297 if( k < cdims ) in cvTsCalcHist()
1392 if( i < cdims ) in prepare_test_case()
1420 for( i = 0; i < cdims; i++ ) in prepare_test_case()
1449 int x, y, k, cdims; in cvTsCalcBackProject() local
1462 cdims = cvGetDims( hist->bins, dims ); in cvTsCalcBackProject()
1464 for( k = 0; k < cdims; k++ ) in cvTsCalcBackProject()
1470 for( k = 0; k < cdims; k++ ) in cvTsCalcBackProject()
1473 for( k = 0; k < cdims; k++ ) in cvTsCalcBackProject()
1483 for( k = 0; k < cdims; k++ ) in cvTsCalcBackProject()
1486 for( k = 0; k < cdims; k++ ) in cvTsCalcBackProject()
1488 idx[cdims-1] = -1; in cvTsCalcBackProject()
1492 for( k = 0; k < cdims; k++ ) in cvTsCalcBackProject()
1502 for( k = 0; k < cdims; k++ ) in cvTsCalcBackProject()
1517 if( k == cdims ) in cvTsCalcBackProject()
1624 if( i < cdims ) in prepare_test_case()
1648 for( i = 0; i < cdims; i++ ) in prepare_test_case()