Home | History | Annotate | Download | only in src

Lines Matching refs:hist

197 icvGetThreshVal_Otsu( const CvHistogram* hist )
214 if( !CV_IS_HIST(hist) || CV_IS_SPARSE_HIST(hist) || hist->mat.dims != 1 )
218 count = hist->mat.dim[0].size;
219 h = (float*)cvPtr1D( hist->bins, 0 );
221 if( !CV_HIST_HAS_RANGES(hist) || CV_IS_UNIFORM_HIST(hist) )
223 if( CV_HIST_HAS_RANGES(hist) )
225 low = hist->thresh[0][0];
226 high = hist->thresh[0][1];
239 nu_thresh = hist->thresh2[0];
299 CvHistogram* hist = 0;
343 CV_CALL( hist = cvCreateHist( 1, &hist_size, CV_HIST_ARRAY, &ranges ));
344 cvCalcArrHist( &srcarr0, hist );
345 thresh = cvFloor(icvGetThreshVal_Otsu( hist ));
489 if( hist )
490 cvReleaseHist( &hist );