Searched refs:gap_stats (Results 1 – 4 of 4) sorted by relevance
/external/tesseract/textord/ |
D | wordseg.cpp | 209 STATS gap_stats (0, maxwidth); in row_words() local 225 gap_stats.add (blob_box.width (), 1); in row_words() 227 min_gap = (inT32) floor (gap_stats.ile (textord_words_width_ile)); in row_words() 228 gap_stats.clear (); in row_words() 237 gap_stats.add (blob_box.left () - prev_x, 1); in row_words() 243 if (gap_stats.get_total () == 0) { in row_words() 248 gap_stats.smooth (smooth_factor); in row_words() 251 cluster_count = gap_stats.cluster (lower, upper, in row_words() 258 cluster_count = gap_stats.cluster (lower, upper, in row_words() 293 gap_stats.print (stdout, TRUE); in row_words() [all …]
|
D | topitch.cpp | 722 STATS gap_stats (0, maxwidth); in row_pitch_stats() local 736 gap_stats.add (blob_box.left () - prev_x, 1); in row_pitch_stats() 742 if (gap_stats.get_total () == 0) { in row_pitch_stats() 748 gap_stats.smooth (smooth_factor); in row_pitch_stats() 751 cluster_count = gap_stats.cluster (lower, upper, in row_pitch_stats() 857 STATS gap_stats (0, maxwidth); in find_row_pitch() local 870 if (!count_pitch_stats (row, &gap_stats, &pitch_stats, in find_row_pitch() 877 dm_gap_iqr = gap_stats.ile (0.75) - gap_stats.ile (0.25); in find_row_pitch() 881 gap_stats.clear (); in find_row_pitch() 883 if (!count_pitch_stats (row, &gap_stats, &pitch_stats, in find_row_pitch() [all …]
|
D | topitch.h | 120 STATS *gap_stats, //blob gaps
|
/external/tesseract/ccmain/ |
D | fixspace.cpp | 553 STATS gap_stats (0, MAXSPACING); in uniformly_spaced() local 573 gap_stats.add (gap, 1); in uniformly_spaced() 578 gap_stats.add (max_gap, max_gap_count); in uniformly_spaced() 590 result = ((gap_stats.get_total () == 0) || in uniformly_spaced() 592 ((gap_stats.get_total () > 2) && in uniformly_spaced() 593 (max_gap <= 2 * gap_stats.median ())) || in uniformly_spaced() 594 ((gap_stats.get_total () <= 2) && in uniformly_spaced() 595 (max_gap <= 2 * gap_stats.mean ()))); in uniformly_spaced() 602 max_gap, max_gap_count, gap_stats.get_total (), gap_stats.mean (), in uniformly_spaced() 603 gap_stats.median ()); in uniformly_spaced() [all …]
|