Home
last modified time | relevance | path

Searched refs:hist2 (Results 1 – 7 of 7) sorted by relevance

/external/chromium-trace/catapult/telemetry/telemetry/util/
Dcolor_histogram_unittest.py14 hist2 = []
15 self.assertEqual(color_histogram.HistogramDistance(hist1, hist2), 0)
18 hist2 = [0, 0, 0]
20 ValueError, lambda: color_histogram.HistogramDistance(hist1, hist2))
24 hist2 = [1, 0]
26 ValueError, lambda: color_histogram.HistogramDistance(hist1, hist2))
30 hist2 = [2, 4, 1, 8, 0, 0]
31 self.assertEqual(color_histogram.HistogramDistance(hist1, hist2), 0)
35 hist2 = [0, 0, 0, 0, 7]
36 self.assertEqual(color_histogram.HistogramDistance(hist1, hist2), 2)
[all …]
Dcolor_histogram.py16 def HistogramDistance(hist1, hist2, default_color=None): argument
19 if len(hist1) != len(hist2):
21 'of different sizes, %s != %s' % (len(hist1), len(hist2)))
28 n2 = sum_func(hist2)
35 hist2[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/
Dpicoacph.c790 picoos_uint16 hist2; in acphAccentuation() local
826 hist2 = PICOKDT_HISTORY_ZERO; in acphAccentuation()
882 hist2 = hist1; in acphAccentuation()
901 hist1, hist2, nrwordspre, nrsyllspre, in acphAccentuation()
908 hist1, hist2, nrwordspre, nrsyllspre, in acphAccentuation()
Dpicokdt.h410 const picoos_uint16 hist2,
Dpicokdt.c2513 const picoos_uint16 hist2, in picokdt_dtACCconstructInVec() argument
2527 pre2, pre1, src, fol1, fol2, hist1, hist2, in picokdt_dtACCconstructInVec()
2540 case 6: inval = hist2; break; in picokdt_dtACCconstructInVec()
/external/opencv/cv/src/
Dcvhistogram.cpp400 const CvHistogram* hist2, 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()
420 CV_CALL( dims2 = cvGetDims( hist2->bins, size2 )); in cvCompareHist()
441 CV_CALL( cvGetRawData( hist2->bins, &v.ptr )); in cvCompareHist()
514 CvSparseMat* mat2 = (CvSparseMat*)(hist2->bins); in cvCompareHist()
/external/opencv/cv/include/
Dcv.h866 const CvHistogram* hist2, in LOAD_CHDL()
907 CVAPI(void) cvCalcProbDensity( const CvHistogram* hist1, const CvHistogram* hist2, in LOAD_CHDL()