Home
last modified time | relevance | path

Searched refs:hist (Results 1 – 25 of 130) sorted by relevance

123456

/external/libvpx/libvpx/
Drate_hist.c40 struct rate_hist *hist = malloc(sizeof(*hist)); in init_rate_histogram() local
45 hist->samples = cfg->rc_buf_sz * 5 / 4 * fps->num / fps->den / 1000; in init_rate_histogram()
48 if (hist->samples == 0) in init_rate_histogram()
49 hist->samples = 1; in init_rate_histogram()
51 hist->frames = 0; in init_rate_histogram()
52 hist->total = 0; in init_rate_histogram()
54 hist->pts = calloc(hist->samples, sizeof(*hist->pts)); in init_rate_histogram()
55 hist->sz = calloc(hist->samples, sizeof(*hist->sz)); in init_rate_histogram()
57 hist->bucket[i].low = INT_MAX; in init_rate_histogram()
58 hist->bucket[i].high = 0; in init_rate_histogram()
[all …]
Drate_hist.h25 void destroy_rate_histogram(struct rate_hist *hist);
27 void update_rate_histogram(struct rate_hist *hist,
33 void show_rate_histogram(struct rate_hist *hist, const vpx_codec_enc_cfg_t *cfg,
/external/chromium-trace/catapult/telemetry/telemetry/util/
Dcolor_histogram_unittest.py59 hist = image_util.GetColorHistogram(bmp)
61 self.assertEquals(sum(hist[i]),
63 self.assertEquals(hist.r[1], 0)
64 self.assertEquals(hist.r[5], 2)
65 self.assertEquals(hist.r[8], 2)
66 self.assertEquals(hist.g[2], 0)
67 self.assertEquals(hist.g[4], 2)
68 self.assertEquals(hist.g[7], 2)
69 self.assertEquals(hist.b[3], 0)
70 self.assertEquals(hist.b[6], 4)
[all …]
/external/opencv/cv/src/
Dcvcalccontrasthistogram.cpp46 CvHistogram* hist, int dont_clear ))
50 CvHistogram* hist, int dont_clear ))
63 CvHistogram* hist, int dont_clear )
68 if( !hist || !img )
71 dims = hist->c_dims;
75 if( hist->type != CV_HIST_ARRAY )
82 for( i = 0; i < hist->c_dims; i++ )
84 if( !hist->thresh[i] )
86 assert( hist->chdims[i] );
89 j = hist->dims[0] * hist->mdims[0];
[all …]
Dcvhistogram.cpp47 CvHistogram *hist = 0; in cvCreateHist() local
58 CV_CALL( hist = (CvHistogram *)cvAlloc( sizeof( CvHistogram ))); in cvCreateHist()
60 hist->type = CV_HIST_MAGIC_VAL; in cvCreateHist()
61 hist->thresh2 = 0; in cvCreateHist()
62 hist->bins = 0; in cvCreateHist()
65 CV_CALL( hist->bins = cvInitMatNDHeader( &hist->mat, dims, sizes, in cvCreateHist()
67 CV_CALL( cvCreateData( hist->bins )); in cvCreateHist()
71 CV_CALL( hist->bins = cvCreateSparseMat( dims, sizes, CV_HIST_DEFAULT_TYPE )); in cvCreateHist()
79 CV_CALL( cvSetHistBinRanges( hist, ranges, uniform )); in cvCreateHist()
84 cvReleaseHist( &hist ); in cvCreateHist()
[all …]
Dcvthresh.cpp197 icvGetThreshVal_Otsu( const CvHistogram* hist ) in icvGetThreshVal_Otsu() argument
214 if( !CV_IS_HIST(hist) || CV_IS_SPARSE_HIST(hist) || hist->mat.dims != 1 ) in icvGetThreshVal_Otsu()
218 count = hist->mat.dim[0].size; in icvGetThreshVal_Otsu()
219 h = (float*)cvPtr1D( hist->bins, 0 ); in icvGetThreshVal_Otsu()
221 if( !CV_HIST_HAS_RANGES(hist) || CV_IS_UNIFORM_HIST(hist) ) in icvGetThreshVal_Otsu()
223 if( CV_HIST_HAS_RANGES(hist) ) in icvGetThreshVal_Otsu()
225 low = hist->thresh[0][0]; in icvGetThreshVal_Otsu()
226 high = hist->thresh[0][1]; in icvGetThreshVal_Otsu()
239 nu_thresh = hist->thresh2[0]; in icvGetThreshVal_Otsu()
299 CvHistogram* hist = 0; in cvThreshold() local
[all …]
/external/opencv3/modules/cudaimgproc/src/
Dhistogram.cpp69 namespace hist namespace
71 void histogram256(PtrStepSzb src, int* hist, cudaStream_t stream);
81 GpuMat hist = _hist.getGpuMat(); in calcHist() local
83 hist.setTo(Scalar::all(0), stream); in calcHist()
85 hist::histogram256(src, hist.ptr<int>(), StreamAccessor::getStream(stream)); in calcHist()
91 namespace hist namespace
113 GpuMat hist(1, 256, CV_32SC1, buf.data); in equalizeHist() local
117 cuda::calcHist(src, hist, _stream); in equalizeHist()
122 … nppSafeCall( nppsIntegral_32s(hist.ptr<Npp32s>(), lut.ptr<Npp32s>(), 256, intBuf.ptr<Npp8u>()) ); in equalizeHist()
124 hist::equalizeHist(src, dst, lut.ptr<int>(), stream); in equalizeHist()
[all …]
/external/opencv3/modules/imgproc/src/
Dhistogram.cpp53 calcHistLookupTables_8u( const Mat& hist, const SparseMat& shist, in calcHistLookupTables_8u() argument
68 int sz = !issparse ? hist.size[i] : shist.size(i); in calcHistLookupTables_8u()
69 size_t step = !issparse ? hist.step[i] : 1; in calcHistLookupTables_8u()
89 int idx = -1, sz = !issparse ? hist.size[i] : shist.size(i); in calcHistLookupTables_8u()
91 size_t step = !issparse ? hist.step[i] : 1; in calcHistLookupTables_8u()
218 Mat& hist, const double* _uniranges, int sz, int dims, in calcHist1D_Invoker() argument
223 histogramSize_(hist.size()), histogramType_(hist.type()), in calcHist1D_Invoker()
224 globalHistogram_((tbb::atomic<int>*)hist.data) in calcHist1D_Invoker()
292 Mat& hist, const double* _uniranges, const int* size, in calcHist2D_Invoker() argument
297 histogramSize_(hist.size()), histogramType_(hist.type()), in calcHist2D_Invoker()
[all …]
/external/libedit/examples/
Dtc1.c137 History *hist; in main() local
146 hist = history_init(); /* Init the builtin history */ in main()
148 history(hist, &ev, H_SETSIZE, 100); in main()
160 el_set(el, EL_HIST, history, hist); in main()
222 if (history(hist, &ev, H_SET, lastevent) == -1) in main()
224 history(hist, &ev, H_ADD , buf); in main()
226 history(hist, &ev, H_ENTER, buf); in main()
231 history(hist, &ev, continuation ? H_APPEND : H_ENTER, buf); in main()
254 for (rv = history(hist, &ev, H_LAST); rv != -1; in main()
255 rv = history(hist, &ev, H_PREV)) in main()
[all …]
Dwtc1.c114 HistoryW *hist; in main() local
127 hist = history_winit(); /* Init built-in history */ in main()
128 history_w(hist, &ev, H_SETSIZE, 100); /* Remember 100 events */ in main()
129 history_w(hist, &ev, H_LOAD, hfile); in main()
139 el_wset(el, EL_HIST, history_w, hist); /* FIXME - history_w? */ in main()
193 history_w(hist, &ev, continuation ? H_APPEND : H_ENTER, line); in main()
214 for(rc = history_w(hist, &ev, H_LAST); in main()
216 rc = history_w(hist, &ev, H_PREV)) in main()
222 history_w(hist, &ev, H_CLEAR); in main()
228 history_w(hist, &ev, H_LOAD, in main()
[all …]
/external/opencv3/modules/cudaimgproc/src/cuda/
Dhist.cu53 namespace hist namespace
55 __global__ void histogram256Kernel(const uchar* src, int cols, int rows, size_t step, int* hist) in histogram256Kernel() argument
94 ::atomicAdd(hist + tid, histVal); in histogram256Kernel()
97 void histogram256(PtrStepSzb src, int* hist, cudaStream_t stream) in histogram256() argument
102 … histogram256Kernel<<<grid, block, 0, stream>>>(src.data, src.cols, src.rows, src.step, hist); in histogram256()
112 namespace hist namespace
124 … int* hist, const int binCount, const int binSize, const int lowerLevel, const int upperLevel) in histEven8u() argument
169 ::atomicAdd(hist + tid, histVal); in histEven8u()
173 …void histEven8u(PtrStepSzb src, int* hist, int binCount, int lowerLevel, int upperLevel, cudaStrea… in histEven8u() argument
182 …histEven8u<<<grid, block, smem_size, stream>>>(src.data, src.step, src.rows, src.cols, hist, binCo… in histEven8u()
[all …]
Dgeneralized_hough.cu210 PtrStepSzi hist, in Ballard_Pos_calcHist() argument
236 if (c.x >= 0 && c.x < hist.cols - 2 && c.y >= 0 && c.y < hist.rows - 2) in Ballard_Pos_calcHist()
237 ::atomicAdd(hist.ptr(c.y + 1) + c.x + 1, 1); in Ballard_Pos_calcHist()
243 PtrStepSzi hist, in Ballard_Pos_calcHist_gpu() argument
252 …cHist<<<grid, block>>>(coordList, thetaList, pointsCount, r_table, r_sizes, hist, idp, thetaScale); in Ballard_Pos_calcHist_gpu()
258 __global__ void Ballard_Pos_findPosInHist(const PtrStepSzi hist, float4* out, int3* votes, in Ballard_Pos_findPosInHist() argument
264 if (x >= hist.cols - 2 || y >= hist.rows - 2) in Ballard_Pos_findPosInHist()
267 const int curVotes = hist(y + 1, x + 1); in Ballard_Pos_findPosInHist()
270 curVotes > hist(y + 1, x) && in Ballard_Pos_findPosInHist()
271 curVotes >= hist(y + 1, x + 2) && in Ballard_Pos_findPosInHist()
[all …]
/external/opencv3/modules/imgproc/test/
Dtest_histograms.cpp83 vector<CvHistogram*> hist; member in CV_BaseHistTest
114 for( size_t i = 0; i < hist.size(); i++ ) in clear()
115 cvReleaseHist( &hist[i] ); in clear()
252 Mat h = cvarrToMat(hist[hist_i]->bins); in init_hist()
257 CvArr* arr = hist[hist_i]->bins; in init_hist()
288 hist.resize(hist_count); in prepare_test_case()
292 hist[i] = cvCreateHist( cdims, dims, hist_type, r, uniform ); in prepare_test_case()
361 cvZero( hist[i]->bins ); in init_hist()
436 CvArr* h = hist[0]->bins; in run_func()
624 cvSetRealND( hist[0]->bins, min_idx0, min_val0 ); in init_hist()
[all …]
/external/opencv3/modules/objdetect/test/
Dtest_cascadeandhog.cpp871 float* hist = blockHist + pk.histOfs[0]; in getBlock() local
872 float t0 = hist[h0] + a[0]*w; in getBlock()
873 float t1 = hist[h1] + a[1]*w; in getBlock()
874 hist[h0] = t0; hist[h1] = t1; in getBlock()
885 float* hist = blockHist + pk.histOfs[0]; in getBlock() local
887 t0 = hist[h0] + a0*w; in getBlock()
888 t1 = hist[h1] + a1*w; in getBlock()
889 hist[h0] = t0; hist[h1] = t1; in getBlock()
891 hist = blockHist + pk.histOfs[1]; in getBlock()
893 t0 = hist[h0] + a0*w; in getBlock()
[all …]
/external/opencv3/samples/cpp/tutorial_code/Histograms_Matching/
DcalcBackProject_Demo1.cpp60 MatND hist; in Hist_and_Backproj() local
66 calcHist( &hue, 1, 0, Mat(), hist, 1, &histSize, &ranges, true, false ); in Hist_and_Backproj()
67 normalize( hist, hist, 0, 255, NORM_MINMAX, -1, Mat() ); in Hist_and_Backproj()
71 calcBackProject( &hue, 1, 0, hist, backproj, &ranges, 1, true ); in Hist_and_Backproj()
82 …{ rectangle( histImg, Point( i*bin_w, h ), Point( (i+1)*bin_w, h - cvRound( hist.at<float>(i)*h/25… in Hist_and_Backproj()
DcalcBackProject_Demo2.cpp82 MatND hist; in Hist_and_Backproj() local
93 calcHist( &hsv, 1, channels, mask, hist, 2, histSize, ranges, true, false ); in Hist_and_Backproj()
95 normalize( hist, hist, 0, 255, NORM_MINMAX, -1, Mat() ); in Hist_and_Backproj()
99 calcBackProject( &hsv, 1, channels, hist, backproj, ranges, 1, true ); in Hist_and_Backproj()
/external/opencv3/modules/imgproc/perf/
Dperf_histogram.cpp25 Mat hist; in PERF_TEST_P() local
40 calcHist(&source, numberOfImages, channels, Mat(), hist, dims, histSize, ranges); in PERF_TEST_P()
43 SANITY_CHECK(hist); in PERF_TEST_P()
54 Mat hist; in PERF_TEST_P() local
68 calcHist(&source, numberOfImages, channels, Mat(), hist, dims, histSize, ranges); in PERF_TEST_P()
71 SANITY_CHECK(hist); in PERF_TEST_P()
81 Mat hist; in PERF_TEST_P() local
96 calcHist(&source, numberOfImages, channels, Mat(), hist, dims, histSize, ranges); in PERF_TEST_P()
99 SANITY_CHECK(hist); in PERF_TEST_P()
/external/opencv3/modules/objdetect/src/
Dhog.cpp810 float* hist = blockHist + pk.histOfs[0]; in getBlock() local
811 float t0 = hist[h0] + a[0]*w; in getBlock()
812 float t1 = hist[h1] + a[1]*w; in getBlock()
813 hist[h0] = t0; hist[h1] = t1; in getBlock()
832 float* hist = blockHist + pk.histOfs[0]; in getBlock() local
833 float t0 = hist[h0] + hist0[0]; in getBlock()
834 float t1 = hist[h1] + hist1[0]; in getBlock()
835 hist[h0] = t0; hist[h1] = t1; in getBlock()
837 hist = blockHist + pk.histOfs[1]; in getBlock()
838 t0 = hist[h0] + hist0[1]; in getBlock()
[all …]
/external/opencv3/samples/python2/
Dcamshift.py64 bin_count = self.hist.shape[0]
68 h = int(self.hist[i])
85 hist = cv2.calcHist( [hsv_roi], [0], mask_roi, [16], [0, 180] )
86 cv2.normalize(hist, hist, 0, 255, cv2.NORM_MINMAX);
87 self.hist = hist.reshape(-1)
96 prob = cv2.calcBackProject([hsv], [0], self.hist, [0, 180], 1)
Ddigits.py137 hist = np.hstack(hists)
141 hist /= hist.sum() + eps
142 hist = np.sqrt(hist)
143 hist /= norm(hist) + eps
145 samples.append(hist)
/external/opencv3/samples/cpp/
Ddemhist.cpp41 Mat dst, hist; in updateBrightnessContrast() local
45 calcHist(&dst, 1, 0, Mat(), hist, 1, &histSize, 0); in updateBrightnessContrast()
48 normalize(hist, hist, 0, histImage.rows, NORM_MINMAX, CV_32F); in updateBrightnessContrast()
55 Point((i+1)*binW, histImage.rows - cvRound(hist.at<float>(i))), in updateBrightnessContrast()
/external/opencv3/samples/android/image-manipulations/src/org/opencv/samples/imagemanipulations/
DImageManipulationsActivity.java221 Mat hist = new Mat(); in onCameraFrame() local
227 … Imgproc.calcHist(Arrays.asList(rgba), mChannels[c], mMat0, hist, mHistSize, mRanges); in onCameraFrame() local
228 Core.normalize(hist, hist, sizeRgba.height/2, 0, Core.NORM_INF); in onCameraFrame()
229 hist.get(0, 0, mBuff); in onCameraFrame()
240 … Imgproc.calcHist(Arrays.asList(mIntermediateMat), mChannels[2], mMat0, hist, mHistSize, mRanges); in onCameraFrame() local
241 Core.normalize(hist, hist, sizeRgba.height/2, 0, Core.NORM_INF); in onCameraFrame()
242 hist.get(0, 0, mBuff); in onCameraFrame()
250 … Imgproc.calcHist(Arrays.asList(mIntermediateMat), mChannels[0], mMat0, hist, mHistSize, mRanges); in onCameraFrame() local
251 Core.normalize(hist, hist, sizeRgba.height/2, 0, Core.NORM_INF); in onCameraFrame()
252 hist.get(0, 0, mBuff); in onCameraFrame()
/external/libvorbis/vq/
Dbookutil.c338 void build_tree_from_lengths(int vals, long *hist, long *lengths){ in build_tree_from_lengths() argument
342 memcpy(histsave,hist,vals*sizeof(long)); in build_tree_from_lengths()
356 if(least==-1 || hist[j]<=least){ in build_tree_from_lengths()
357 least=hist[j]; in build_tree_from_lengths()
362 if((least==-1 || hist[j]<=least) && membership[j]!=first){ in build_tree_from_lengths()
363 least=hist[j]; in build_tree_from_lengths()
372 least=hist[first]+hist[second]; in build_tree_from_lengths()
376 hist[j]=least; in build_tree_from_lengths()
407 void build_tree_from_lengths0(int vals, long *hist, long *lengths){ in build_tree_from_lengths0() argument
417 if(hist[i]>0) in build_tree_from_lengths0()
[all …]
/external/opencv3/modules/cudaimgproc/test/
Dtest_histogram.cpp73 cv::cuda::GpuMat hist; in CUDA_TEST_P() local
74 cv::cuda::histEven(loadMat(src), hist, hbins, (int) hranges[0], (int) hranges[1]); in CUDA_TEST_P()
86 EXPECT_MAT_NEAR(hist_gold, hist, 0.0); in CUDA_TEST_P()
115 cv::cuda::GpuMat hist; in CUDA_TEST_P() local
116 cv::cuda::calcHist(loadMat(src), hist); in CUDA_TEST_P()
130 EXPECT_MAT_NEAR(hist_gold, hist, 0.0); in CUDA_TEST_P()
/external/blktrace/btt/
Dunplug_hist.c30 int hist[NBKTS * sizeof(int)]; member
41 memset(hbp->hist, 0, NBKTS * sizeof(int)); in unplug_hist_alloc()
60 hbp->hist[idx]++; in unplug_hist_add()
78 fprintf(fp, "%d %d\n", i, hbp->hist[i]); in unplug_hist_free()

123456