Searched refs:hist1 (Results 1 – 7 of 7) sorted by relevance
/external/chromium-trace/catapult/telemetry/telemetry/util/ |
D | color_histogram_unittest.py | 13 hist1 = [] 15 self.assertEqual(color_histogram.HistogramDistance(hist1, hist2), 0) 17 hist1 = [0, 0, 0] 20 ValueError, lambda: color_histogram.HistogramDistance(hist1, hist2)) 23 hist1 = [1] 26 ValueError, lambda: color_histogram.HistogramDistance(hist1, hist2)) 29 hist1 = [2, 4, 1, 8, 0, 0] 31 self.assertEqual(color_histogram.HistogramDistance(hist1, hist2), 0) 34 hist1 = [0, 0, 1, 0, 0] 36 self.assertEqual(color_histogram.HistogramDistance(hist1, hist2), 2) [all …]
|
D | color_histogram.py | 16 def HistogramDistance(hist1, hist2, default_color=None): argument 19 if len(hist1) != len(hist2): 21 'of different sizes, %s != %s' % (len(hist1), len(hist2))) 22 if len(hist1) == 0: 27 n1 = sum_func(hist1) 32 hist1[default_color] = 1 39 remainder = np.multiply(hist1, n2) - np.multiply(hist2, n1) 45 for value1, value2 in zip(hist1, hist2):
|
/external/svox/pico/lib/ |
D | picoacph.c | 789 picoos_uint16 hist1; in acphAccentuation() local 825 hist1 = PICOKDT_HISTORY_ZERO; in acphAccentuation() 882 hist2 = hist1; in acphAccentuation() 883 hist1 = prevout; in acphAccentuation() 901 hist1, hist2, nrwordspre, nrsyllspre, in acphAccentuation() 908 hist1, hist2, nrwordspre, nrsyllspre, in acphAccentuation()
|
D | picokdt.h | 409 const picoos_uint16 hist1,
|
D | picokdt.c | 2512 const picoos_uint16 hist1, in picokdt_dtACCconstructInVec() argument 2527 pre2, pre1, src, fol1, fol2, hist1, hist2, in picokdt_dtACCconstructInVec() 2539 case 5: inval = hist1; break; in picokdt_dtACCconstructInVec()
|
/external/opencv/cv/src/ |
D | cvhistogram.cpp | 399 cvCompareHist( const CvHistogram* hist1, in cvCompareHist() argument 413 if( !CV_IS_HIST(hist1) || !CV_IS_HIST(hist2) ) in cvCompareHist() 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() 434 if( !CV_IS_SPARSE_MAT(hist1->bins)) in cvCompareHist() 439 CV_CALL( cvGetRawData( hist1->bins, &v.ptr )); in cvCompareHist() 513 CvSparseMat* mat1 = (CvSparseMat*)(hist1->bins); in cvCompareHist()
|
/external/opencv/cv/include/ |
D | cv.h | 865 CVAPI(double) cvCompareHist( const CvHistogram* hist1, in LOAD_CHDL() 907 CVAPI(void) cvCalcProbDensity( const CvHistogram* hist1, const CvHistogram* hist2, in LOAD_CHDL()
|