Lines Matching refs:dims
45 cvCreateHist( int dims, int *sizes, CvHistType type, float** ranges, int uniform ) in cvCreateHist() argument
52 if( (unsigned)dims > CV_MAX_DIM ) in cvCreateHist()
65 CV_CALL( hist->bins = cvInitMatNDHeader( &hist->mat, dims, sizes, in cvCreateHist()
71 CV_CALL( hist->bins = cvCreateSparseMat( dims, sizes, CV_HIST_DEFAULT_TYPE )); in cvCreateHist()
92 cvMakeHistHeaderForArray( int dims, int *sizes, CvHistogram *hist, in cvMakeHistHeaderForArray() argument
109 CV_CALL( hist->bins = cvInitMatNDHeader( &hist->mat, dims, sizes, in cvMakeHistHeaderForArray()
283 int i, dims, size[CV_MAX_DIM]; in cvGetMinMaxHistValue() local
288 dims = cvGetDims( hist->bins, size ); in cvGetMinMaxHistValue()
298 if( dims == 1 ) in cvGetMinMaxHistValue()
305 else if( dims == 2 ) in cvGetMinMaxHistValue()
318 for( i = dims - 1; i >= 0; i-- ) in cvGetMinMaxHistValue()
378 for( i = 0; i < dims; i++ ) in cvGetMinMaxHistValue()
727 int dims, size[CV_MAX_DIM], total = 0; in cvSetHistBinRanges() local
736 CV_CALL( dims = cvGetDims( hist->bins, size )); in cvSetHistBinRanges()
737 for( i = 0; i < dims; i++ ) in cvSetHistBinRanges()
742 for( i = 0; i < dims; i++ ) in cvSetHistBinRanges()
759 dims*sizeof(hist->thresh2[0])+ in cvSetHistBinRanges()
762 dim_ranges = (float*)(hist->thresh2 + dims); in cvSetHistBinRanges()
764 for( i = 0; i < dims; i++ ) in cvSetHistBinRanges()
794 icvCalcHistLookupTables8u( const CvHistogram* hist, int dims, int* size, int* tab ) in icvCalcHistLookupTables8u() argument
803 for( i = 0; i < dims; i++ ) in icvCalcHistLookupTables8u()
828 for( i = 0; i < dims; i++ ) in icvCalcHistLookupTables8u()
876 int dims, histsize[CV_MAX_DIM]; in icvCalcHist_8u_C1R() local
880 dims = cvGetDims( hist->bins, histsize ); in icvCalcHist_8u_C1R()
882 tab = (int*)cvStackAlloc( dims*256*sizeof(int)); in icvCalcHist_8u_C1R()
883 status = icvCalcHistLookupTables8u( hist, dims, histsize, tab ); in icvCalcHist_8u_C1R()
893 for( i = 0; i < dims; i++ ) in icvCalcHist_8u_C1R()
896 if( dims <= 3 && total >= -ICV_HIST_DUMMY_IDX ) in icvCalcHist_8u_C1R()
899 switch( dims ) in icvCalcHist_8u_C1R()
1028 for( i = 0; i < dims; i++ ) in icvCalcHist_8u_C1R()
1035 if( i == dims ) in icvCalcHist_8u_C1R()
1046 for( i = 0; i < dims; i++ ) in icvCalcHist_8u_C1R()
1053 if( i == dims ) in icvCalcHist_8u_C1R()
1060 for( i = 0; i < dims; i++ ) in icvCalcHist_8u_C1R()
1076 for( i = 0; i < dims; i++ ) in icvCalcHist_8u_C1R()
1083 if( i == dims ) in icvCalcHist_8u_C1R()
1096 for( i = 0; i < dims; i++ ) in icvCalcHist_8u_C1R()
1103 if( i == dims ) in icvCalcHist_8u_C1R()
1113 for( i = 0; i < dims; i++ ) in icvCalcHist_8u_C1R()
1129 int dims, histsize[CV_MAX_DIM]; in icvCalcHist_32f_C1R() local
1133 dims = cvGetDims( hist->bins, histsize ); in icvCalcHist_32f_C1R()
1138 for( i = 0; i < dims; i++ ) in icvCalcHist_32f_C1R()
1153 switch( dims ) in icvCalcHist_32f_C1R()
1257 for( i = 0; i < dims; i++ ) in icvCalcHist_32f_C1R()
1265 if( i == dims ) in icvCalcHist_32f_C1R()
1276 for( i = 0; i < dims; i++ ) in icvCalcHist_32f_C1R()
1284 if( i == dims ) in icvCalcHist_32f_C1R()
1291 for( i = 0; i < dims; i++ ) in icvCalcHist_32f_C1R()
1305 for( i = 0; i < dims; i++ ) in icvCalcHist_32f_C1R()
1319 if( i == dims ) in icvCalcHist_32f_C1R()
1324 for( i = 0; i < dims; i++ ) in icvCalcHist_32f_C1R()
1344 for( i = 0; i < dims; i++ ) in icvCalcHist_32f_C1R()
1352 if( i == dims ) in icvCalcHist_32f_C1R()
1366 for( i = 0; i < dims; i++ ) in icvCalcHist_32f_C1R()
1380 if( i == dims ) in icvCalcHist_32f_C1R()
1389 for( i = 0; i < dims; i++ ) in icvCalcHist_32f_C1R()
1412 int i, dims; in cvCalcArrHist() local
1424 CV_CALL( dims = cvGetDims( hist->bins )); in cvCalcArrHist()
1426 for( i = 0; i < dims; i++ ) in cvCalcArrHist()
1559 int dims, histsize[CV_MAX_DIM]; in icvCalcBackProject_8u_C1R() local
1563 dims = cvGetDims( hist->bins, histsize ); in icvCalcBackProject_8u_C1R()
1565 tab = (int*)cvStackAlloc( dims*256*sizeof(int)); in icvCalcBackProject_8u_C1R()
1566 status = icvCalcHistLookupTables8u( hist, dims, histsize, tab ); in icvCalcBackProject_8u_C1R()
1577 for( i = 0; i < dims; i++ ) in icvCalcBackProject_8u_C1R()
1580 if( dims <= 3 && total >= -ICV_HIST_DUMMY_IDX ) in icvCalcBackProject_8u_C1R()
1583 if( dims > 1 && total <= small_hist_size && CV_IS_MAT_CONT(mat->type)) in icvCalcBackProject_8u_C1R()
1595 switch( dims ) in icvCalcBackProject_8u_C1R()
1730 for( i = 0; i < dims; i++ ) in icvCalcBackProject_8u_C1R()
1738 if( i == dims ) in icvCalcBackProject_8u_C1R()
1751 for( i = 0; i < dims; i++ ) in icvCalcBackProject_8u_C1R()
1759 if( i == dims ) in icvCalcBackProject_8u_C1R()
1769 for( i = 0; i < dims; i++ ) in icvCalcBackProject_8u_C1R()
1787 for( i = 0; i < dims; i++ ) in icvCalcBackProject_8u_C1R()
1794 if( i == dims ) in icvCalcBackProject_8u_C1R()
1804 for( i = 0; i < dims; i++ ) in icvCalcBackProject_8u_C1R()
1820 int dims, histsize[CV_MAX_DIM]; in icvCalcBackProject_32f_C1R() local
1824 dims = cvGetDims( hist->bins, histsize ); in icvCalcBackProject_32f_C1R()
1830 for( i = 0; i < dims; i++ ) in icvCalcBackProject_32f_C1R()
1846 switch( dims ) in icvCalcBackProject_32f_C1R()
1931 for( i = 0; i < dims; i++ ) in icvCalcBackProject_32f_C1R()
1939 if( i == dims ) in icvCalcBackProject_32f_C1R()
1946 for( i = 0; i < dims; i++ ) in icvCalcBackProject_32f_C1R()
1957 for( i = 0; i < dims; i++ ) in icvCalcBackProject_32f_C1R()
1971 if( i == dims ) in icvCalcBackProject_32f_C1R()
1977 for( i = 0; i < dims; i++ ) in icvCalcBackProject_32f_C1R()
1993 for( i = 0; i < dims; i++ ) in icvCalcBackProject_32f_C1R()
2001 if( i == dims ) in icvCalcBackProject_32f_C1R()
2014 for( i = 0; i < dims; i++ ) in icvCalcBackProject_32f_C1R()
2028 if( i == dims ) in icvCalcBackProject_32f_C1R()
2038 for( i = 0; i < dims; i++ ) in icvCalcBackProject_32f_C1R()
2057 int i, dims; in cvCalcArrBackProject() local
2068 CV_CALL( dims = cvGetDims( hist->bins )); in cvCalcArrBackProject()
2070 for( i = 0; i <= dims; i++ ) in cvCalcArrBackProject()
2072 CvMat stub, *mat = (CvMat*)(i < dims ? img[i] : dst); in cvCalcArrBackProject()
2096 if( i < dims ) in cvCalcArrBackProject()
2153 int i, dims; in cvCalcArrBackProjectPatch() local
2170 CV_CALL( dims = cvGetDims( hist->bins )); in cvCalcArrBackProjectPatch()
2174 for( i = 0; i < dims; i++ ) in cvCalcArrBackProjectPatch()
2390 for(i=0; i<mat->dims; i++){ in icvReadHist()
2394 cvInitMatNDHeader( &(h->mat), mat->dims, sizes, mat->type, mat->data.ptr ); in icvReadHist()
2416 int dims; in icvReadHist() local
2422 CV_CALL( dims = cvGetDims( h->bins, size )); in icvReadHist()
2423 for( i = 0; i < dims; i++ ){ in icvReadHist()
2434 for(i=0; i<dims; i++){ in icvReadHist()
2442 dims*sizeof(h->thresh2[0])+ in icvReadHist()
2444 dim_ranges = (float*)(h->thresh2 + dims); in icvReadHist()
2445 for(i=0; i < dims; i++){ in icvReadHist()
2463 int dims; in icvWriteHist() local
2489 dims = cvGetDims( hist->bins, sizes ); in icvWriteHist()
2492 for(i=0; i<dims; i++){ in icvWriteHist()
2497 for(i=0; i<dims; i++){ in icvWriteHist()