#include <pitsync1.h>
Definition at line 34 of file pitsync1.h.
| FPSEGPT::FPSEGPT |
( |
inT16 |
x | ) |
|
Definition at line 91 of file pitsync1.cpp.
107 FPSEGPT_IT pred_it = prev_list;
115 for (pred_it.mark_cycle_pt (); !pred_it.cycled_list (); pred_it.forward ()) {
116 segpt = pred_it.data ();
119 dist = x - segpt->xpos;
120 if (dist >= pitch - pitch_error && dist <= pitch + pitch_error
122 total = segpt->mean_sum + dist;
123 sq_dist = dist * dist + segpt->sq_sum + offset * offset;
125 mean = total / region_index;
126 factor = mean - pitch;
128 factor += sq_dist / (region_index) - mean * mean;
| FPSEGPT::FPSEGPT |
( |
FPCUTPT * |
cutpt | ) |
|
| inT16 FPSEGPT::cheap_cuts |
( |
| ) |
const |
|
inline |
| double FPSEGPT::cost_function |
( |
| ) |
|
|
inline |
| inT32 FPSEGPT::position |
( |
| ) |
|
|
inline |
| double FPSEGPT::squares |
( |
| ) |
|
|
inline |
| inT16 FPSEGPT::fake_count |
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/tesseract-ocr-3.02.02/textord/pitsync1.h
- /home/abuild/rpmbuild/BUILD/tesseract-ocr-3.02.02/textord/pitsync1.cpp