Lines Matching refs:hist
197 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
343 CV_CALL( hist = cvCreateHist( 1, &hist_size, CV_HIST_ARRAY, &ranges )); in cvThreshold()
344 cvCalcArrHist( &srcarr0, hist ); in cvThreshold()
345 thresh = cvFloor(icvGetThreshVal_Otsu( hist )); in cvThreshold()
489 if( hist ) in cvThreshold()
490 cvReleaseHist( &hist ); in cvThreshold()