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