Searched refs:hist1 (Results 1 - 14 of 14) sorted by relevance

/external/chromium-trace/catapult/telemetry/telemetry/util/
H A Dcolor_histogram.py16 def HistogramDistance(hist1, hist2, default_color=None):
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):
H A Dcolor_histogram_unittest.py13 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, hist
[all...]
/external/opencv3/modules/imgproc/test/ocl/
H A Dtest_histogram.cpp162 Mat hist1; local
165 calcHist(&frame1, 1, 0, Mat(), hist1, 1, &histSize, &ranges1, true, false);
166 normalize(hist1, hist1, 0, 255, NORM_MINMAX, -1, Mat());
170 hist1.copyTo(uhist1);
179 OCL_OFF(calcBackProject(&frame1, 1, 0, hist1, dst1, &ranges1, 1, true));
/external/opencv3/modules/cudalegacy/src/cuda/
H A Dfgd.cu168 __global__ void mergeHistogram(const unsigned int* partialBuf0, const unsigned int* partialBuf1, const unsigned int* partialBuf2, unsigned int* hist0, unsigned int* hist1, unsigned int* hist2)
192 hist1[blockIdx.x] = sum1;
199 unsigned int* hist0, unsigned int* hist1, unsigned int* hist2,
210 mergeHistogram<<<HISTOGRAM_BIN_COUNT, MERGE_THREADBLOCK_SIZE, 0, stream>>>(partialBuf0, partialBuf1, partialBuf2, hist0, hist1, hist2);
217 template void calcDiffHistogram_gpu<uchar3, uchar3>(PtrStepSzb prevFrame, PtrStepSzb curFrame, unsigned int* hist0, unsigned int* hist1, unsigned int* hist2, unsigned int* partialBuf0, unsigned int* partialBuf1, unsigned int* partialBuf2, bool cc20, cudaStream_t stream);
218 template void calcDiffHistogram_gpu<uchar3, uchar4>(PtrStepSzb prevFrame, PtrStepSzb curFrame, unsigned int* hist0, unsigned int* hist1, unsigned int* hist2, unsigned int* partialBuf0, unsigned int* partialBuf1, unsigned int* partialBuf2, bool cc20, cudaStream_t stream);
219 template void calcDiffHistogram_gpu<uchar4, uchar3>(PtrStepSzb prevFrame, PtrStepSzb curFrame, unsigned int* hist0, unsigned int* hist1, unsigned int* hist2, unsigned int* partialBuf0, unsigned int* partialBuf1, unsigned int* partialBuf2, bool cc20, cudaStream_t stream);
220 template void calcDiffHistogram_gpu<uchar4, uchar4>(PtrStepSzb prevFrame, PtrStepSzb curFrame, unsigned int* hist0, unsigned int* hist1, unsigned int* hist2, unsigned int* partialBuf0, unsigned int* partialBuf1, unsigned int* partialBuf2, bool cc20, cudaStream_t stream);
H A Dfgd.hpp168 unsigned int* hist0, unsigned int* hist1, unsigned int* hist2,
/external/svox/pico/lib/
H A Dpicokdt.h389 hist1 - hist2: previously predicted ACC values
409 const picoos_uint16 hist1,
H A Dpicoacph.c789 picoos_uint16 hist1; local
825 hist1 = PICOKDT_HISTORY_ZERO;
882 hist2 = hist1;
883 hist1 = prevout;
901 hist1, hist2, nrwordspre, nrsyllspre,
908 hist1, hist2, nrwordspre, nrsyllspre,
H A Dpicokdt.c2512 const picoos_uint16 hist1,
2527 pre2, pre1, src, fol1, fol2, hist1, hist2,
2539 case 5: inval = hist1; break;
2506 picokdt_dtACCconstructInVec(const picokdt_DtACC this, const picoos_uint8 pre2, const picoos_uint8 pre1, const picoos_uint8 src, const picoos_uint8 fol1, const picoos_uint8 fol2, const picoos_uint16 hist1, const picoos_uint16 hist2, const picoos_uint16 nrwordspre, const picoos_uint16 nrsyllspre, const picoos_uint16 nrwordsfol, const picoos_uint16 nrsyllsfol, const picoos_uint16 footwordsfol, const picoos_uint16 footsyllsfol) argument
/external/opencv/cv/src/
H A Dcvhistogram.cpp399 cvCompareHist( const CvHistogram* hist1, argument
413 if( !CV_IS_HIST(hist1) || !CV_IS_HIST(hist2) )
416 if( CV_IS_SPARSE_MAT(hist1->bins) != CV_IS_SPARSE_MAT(hist2->bins))
419 CV_CALL( dims1 = cvGetDims( hist1->bins, size1 ));
434 if( !CV_IS_SPARSE_MAT(hist1->bins))
439 CV_CALL( cvGetRawData( hist1->bins, &v.ptr ));
513 CvSparseMat* mat1 = (CvSparseMat*)(hist1->bins);
/external/opencv3/modules/imgproc/include/opencv2/imgproc/
H A Dimgproc_c.h741 CVAPI(double) cvCompareHist( const CvHistogram* hist1,
818 \f[\texttt{disthist} (I)= \forkthree{0}{if \(\texttt{hist1}(I)=0\)}{\texttt{scale}}{if \(\texttt{hist1}(I) \ne 0\) and \(\texttt{hist2}(I) > \texttt{hist1}(I)\)}{\frac{\texttt{hist2}(I) \cdot \texttt{scale}}{\texttt{hist1}(I)}}{if \(\texttt{hist1}(I) \ne 0\) and \(\texttt{hist2}(I) \le \texttt{hist1}(I)\)}\f]
820 @param hist1 First histogram (the divisor).
825 CVAPI(void) cvCalcProbDensity( const CvHistogram* hist1, const CvHistogram* hist2,
/external/opencv/cv/include/
H A Dcv.h865 CVAPI(double) cvCompareHist( const CvHistogram* hist1,
907 CVAPI(void) cvCalcProbDensity( const CvHistogram* hist1, const CvHistogram* hist2,
/external/opencv3/modules/imgproc/src/
H A Dhistogram.cpp2885 cvCompareHist( const CvHistogram* hist1,
2892 if( !CV_IS_HIST(hist1) || !CV_IS_HIST(hist2) )
2895 if( CV_IS_SPARSE_MAT(hist1->bins) != CV_IS_SPARSE_MAT(hist2->bins))
2898 if( !CV_IS_SPARSE_MAT(hist1->bins) )
2900 cv::Mat H1 = cv::cvarrToMat(hist1->bins);
2905 int dims1 = cvGetDims( hist1->bins, size1 );
2920 CvSparseMat* mat1 = (CvSparseMat*)(hist1->bins);
3030 ((const CvSparseMat*)hist1->bins)->copyToSparseMat(sH1);
/external/opencv3/modules/objdetect/src/
H A Dhog.cpp817 float hist0[4], hist1[4]; local
830 _mm_storeu_ps(hist1, _t1);
834 float t1 = hist[h1] + hist1[0];
839 t1 = hist[h1] + hist1[1];
878 _mm_storeu_ps(hist1, _t1);
882 float t1 = hist[h1] + hist1[0];
887 t1 = hist[h1] + hist1[1];
892 t1 = hist[h1] + hist1[2];
897 t1 = hist[h1] + hist1[3];
909 // _mm_storeu_ps(hist1, _hist
[all...]
/external/opencv3/modules/cudalegacy/src/
H A Dfgd.cpp157 unsigned int* hist0, unsigned int* hist1, unsigned int* hist2,

Completed in 395 milliseconds