/external/chromium-trace/catapult/telemetry/telemetry/util/ |
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...] |
color_histogram.py | 16 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):
|
/external/opencv3/modules/imgproc/test/ocl/ |
test_histogram.cpp | 162 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/ |
fgd.cu | 168 __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); [all...] |
fgd.hpp | 168 unsigned int* hist0, unsigned int* hist1, unsigned int* hist2,
|
/external/svox/pico/lib/ |
picokdt.h | 389 hist1 - hist2: previously predicted ACC values 409 const picoos_uint16 hist1,
|
picoacph.c | 789 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, [all...] |
picokdt.c | [all...] |
/external/opencv/cv/src/ |
cvhistogram.cpp | 399 cvCompareHist( const CvHistogram* hist1, 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); [all...] |
/external/opencv3/modules/imgproc/include/opencv2/imgproc/ |
imgproc_c.h | 741 CVAPI(double) cvCompareHist( const CvHistogram* hist1, [all...] |
/external/opencv/cv/include/ |
cv.h | [all...] |
/external/opencv3/modules/imgproc/src/ |
histogram.cpp | [all...] |
/external/opencv3/modules/objdetect/src/ |
hog.cpp | 817 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); [all...] |
/external/opencv3/modules/cudalegacy/src/ |
fgd.cpp | 157 unsigned int* hist0, unsigned int* hist1, unsigned int* hist2,
|