• Home
  • Raw
  • Download

Lines Matching refs:bins

62     hist->bins = 0;  in cvCreateHist()
65 CV_CALL( hist->bins = cvInitMatNDHeader( &hist->mat, dims, sizes, in cvCreateHist()
67 CV_CALL( cvCreateData( hist->bins )); in cvCreateHist()
71 CV_CALL( hist->bins = cvCreateSparseMat( dims, sizes, CV_HIST_DEFAULT_TYPE )); in cvCreateHist()
109 CV_CALL( hist->bins = cvInitMatNDHeader( &hist->mat, dims, sizes, in cvMakeHistHeaderForArray()
127 hist->bins = 0; in cvMakeHistHeaderForArray()
154 cvRelease( &temp->bins ); in cvReleaseHist()
157 cvReleaseData( temp->bins ); in cvReleaseHist()
158 temp->bins = 0; in cvReleaseHist()
180 cvZero( hist->bins ); in cvClearHist()
197 if( !CV_IS_SPARSE_MAT(hist->bins) ) in cvThreshHist()
200 CV_CALL( cvGetMat( hist->bins, &mat, 0, 1 )); in cvThreshHist()
205 CvSparseMat* mat = (CvSparseMat*)hist->bins; in cvThreshHist()
237 CV_CALL( cvGetMat( hist->bins, &mat, 0, 1 )); in cvNormalizeHist()
245 CvSparseMat* mat = (CvSparseMat*)hist->bins; in cvNormalizeHist()
288 dims = cvGetDims( hist->bins, size ); in cvGetMinMaxHistValue()
295 CV_CALL( cvGetMat( hist->bins, &mat, 0, 1 )); in cvGetMinMaxHistValue()
338 CvSparseMat* mat = (CvSparseMat*)hist->bins; in cvGetMinMaxHistValue()
416 if( CV_IS_SPARSE_MAT(hist1->bins) != CV_IS_SPARSE_MAT(hist2->bins)) in cvCompareHist()
419 CV_CALL( dims1 = cvGetDims( hist1->bins, size1 )); in cvCompareHist()
420 CV_CALL( dims2 = cvGetDims( hist2->bins, size2 )); in cvCompareHist()
434 if( !CV_IS_SPARSE_MAT(hist1->bins)) in cvCompareHist()
439 CV_CALL( cvGetRawData( hist1->bins, &v.ptr )); in cvCompareHist()
441 CV_CALL( cvGetRawData( hist2->bins, &v.ptr )); in cvCompareHist()
513 CvSparseMat* mat1 = (CvSparseMat*)(hist1->bins); in cvCompareHist()
514 CvSparseMat* mat2 = (CvSparseMat*)(hist2->bins); in cvCompareHist()
673 is_sparse = CV_IS_SPARSE_MAT(src->bins); in cvCopyHist()
674 CV_CALL( dims1 = cvGetDims( src->bins, size1 )); in cvCopyHist()
678 if( dst && is_sparse == CV_IS_SPARSE_MAT(dst->bins)) in cvCopyHist()
680 CV_CALL( dims2 = cvGetDims( dst->bins, size2 )); in cvCopyHist()
713 CV_CALL( cvCopy( src->bins, dst->bins )); in cvCopyHist()
736 CV_CALL( dims = cvGetDims( hist->bins, size )); in cvSetHistBinRanges()
812 step = ((CvMatND*)(hist->bins))->dim[i].step/sizeof(float); in icvCalcHistLookupTables8u()
835 step = ((CvMatND*)(hist->bins))->dim[i].step/sizeof(float); in icvCalcHistLookupTables8u()
880 dims = cvGetDims( hist->bins, histsize ); in icvCalcHist_8u_C1R()
891 int* bins = ((CvMatND*)(hist->bins))->data.i; in icvCalcHist_8u_C1R() local
942 bins[idx] += tab1d[i]; in icvCalcHist_8u_C1R()
960 bins[idx]++; in icvCalcHist_8u_C1R()
975 bins[idx]++; in icvCalcHist_8u_C1R()
998 bins[idx]++; in icvCalcHist_8u_C1R()
1013 bins[idx]++; in icvCalcHist_8u_C1R()
1027 int* binptr = bins; in icvCalcHist_8u_C1R()
1045 int* binptr = bins; in icvCalcHist_8u_C1R()
1067 CvSparseMat* mat = (CvSparseMat*)(hist->bins); in icvCalcHist_8u_C1R()
1133 dims = cvGetDims( hist->bins, histsize ); in icvCalcHist_32f_C1R()
1148 CvMatND* mat = (CvMatND*)(hist->bins); in icvCalcHist_32f_C1R()
1149 int* bins = mat->data.i; in icvCalcHist_32f_C1R() local
1172 bins[v0]++; in icvCalcHist_32f_C1R()
1174 bins[v1]++; in icvCalcHist_32f_C1R()
1180 bins[v0]++; in icvCalcHist_32f_C1R()
1182 bins[v1]++; in icvCalcHist_32f_C1R()
1189 bins[v0]++; in icvCalcHist_32f_C1R()
1199 bins[v0]++; in icvCalcHist_32f_C1R()
1211 int step0 = ((CvMatND*)(hist->bins))->dim[0].step/sizeof(float); in icvCalcHist_32f_C1R()
1227 bins[v0*step0 + v1]++; in icvCalcHist_32f_C1R()
1241 bins[v0*step0 + v1]++; in icvCalcHist_32f_C1R()
1256 int* binptr = bins; in icvCalcHist_32f_C1R()
1275 int* binptr = bins; in icvCalcHist_32f_C1R()
1304 int* binptr = bins; in icvCalcHist_32f_C1R()
1333 CvSparseMat* mat = (CvSparseMat*)(hist->bins); in icvCalcHist_32f_C1R()
1424 CV_CALL( dims = cvGetDims( hist->bins )); in cvCalcArrHist()
1481 dense = *(CvMatND*)hist->bins; in cvCalcArrHist()
1487 CV_CALL( cvZero( hist->bins )); in cvCalcArrHist()
1491 CV_CALL( cvConvert( (CvMatND*)hist->bins, &dense )); in cvCalcArrHist()
1495 CvSparseMat* mat = (CvSparseMat*)(hist->bins); in cvCalcArrHist()
1529 CV_CALL( cvConvert( &dense, (CvMatND*)hist->bins )); in cvCalcArrHist()
1533 CvSparseMat* mat = (CvSparseMat*)(hist->bins); in cvCalcArrHist()
1563 dims = cvGetDims( hist->bins, histsize ); in icvCalcBackProject_8u_C1R()
1573 CvMatND* mat = (CvMatND*)(hist->bins); in icvCalcBackProject_8u_C1R()
1574 float* bins = mat->data.fl; in icvCalcBackProject_8u_C1R() local
1590 int v = cvRound(bins[i]); in icvCalcBackProject_8u_C1R()
1605 int v = cvRound(bins[idx]); in icvCalcBackProject_8u_C1R()
1667 v = cvRound(bins[idx]); in icvCalcBackProject_8u_C1R()
1712 v = cvRound(bins[idx]); in icvCalcBackProject_8u_C1R()
1748 float* binptr = bins; in icvCalcBackProject_8u_C1R()
1778 CvSparseMat* mat = (CvSparseMat*)(hist->bins); in icvCalcBackProject_8u_C1R()
1824 dims = cvGetDims( hist->bins, histsize ); in icvCalcBackProject_32f_C1R()
1841 CvMatND* mat = (CvMatND*)(hist->bins); in icvCalcBackProject_32f_C1R()
1842 float* bins = mat->data.fl; in icvCalcBackProject_32f_C1R() local
1863 dst[x] = bins[v0]; in icvCalcBackProject_32f_C1R()
1868 dst[x+1] = bins[v1]; in icvCalcBackProject_32f_C1R()
1876 dst[x+2] = bins[v0]; in icvCalcBackProject_32f_C1R()
1881 dst[x+3] = bins[v1]; in icvCalcBackProject_32f_C1R()
1891 dst[x] = bins[v0]; in icvCalcBackProject_32f_C1R()
1903 int step0 = ((CvMatND*)(hist->bins))->dim[0].step/sizeof(float); in icvCalcBackProject_32f_C1R()
1917 dst[x] = bins[v0*step0 + v1]; in icvCalcBackProject_32f_C1R()
1929 float* binptr = bins; in icvCalcBackProject_32f_C1R()
1956 float* binptr = bins; in icvCalcBackProject_32f_C1R()
1984 CvSparseMat* mat = (CvSparseMat*)(hist->bins); in icvCalcBackProject_32f_C1R()
2068 CV_CALL( dims = cvGetDims( hist->bins )); in cvCalcArrBackProject()
2170 CV_CALL( dims = cvGetDims( hist->bins )); in cvCalcArrBackProjectPatch()
2241 if( !CV_IS_MATND(src[i]->bins) || !CV_IS_MATND(dst[i]->bins) ) in cvCalcBayesianProb()
2245 cvZero( dst[0]->bins ); in cvCalcBayesianProb()
2248 CV_CALL( cvAdd( src[i]->bins, dst[0]->bins, dst[0]->bins )); in cvCalcBayesianProb()
2250 CV_CALL( cvDiv( 0, dst[0]->bins, dst[0]->bins )); in cvCalcBayesianProb()
2254 CV_CALL( cvMul( src[i]->bins, dst[0]->bins, dst[i]->bins )); in cvCalcBayesianProb()
2275 CvArr* arrs[] = { hist->bins, hist_mask->bins, hist_dens->bins }; in cvCalcProbDensity()
2336 h = (float*)cvPtr1D( hist->bins, 0 ); in cvEqualizeHist()
2395 h->bins = &(h->mat); in icvReadHist()
2407 h->bins = cvReadByName( fs, node, "bins" ); in icvReadHist()
2408 if(!CV_IS_SPARSE_MAT(h->bins)){ in icvReadHist()
2422 CV_CALL( dims = cvGetDims( h->bins, size )); in icvReadHist()
2481 cvWrite( fs, "bins", hist->bins ); in icvWriteHist()
2489 dims = cvGetDims( hist->bins, sizes ); in icvWriteHist()