| 393 | } |
| 394 | |
| 395 | static void PrintBoxWidths(BLOBNBOX* neighbour) { |
| 396 | const TBOX& nbox = neighbour->bounding_box(); |
| 397 | tprintf("Box (%d,%d)->(%d,%d): h-width=%.1f, v-width=%.1f p-width=%1.f\n", |
| 398 | nbox.left(), nbox.bottom(), nbox.right(), nbox.top(), |
| 399 | neighbour->horz_stroke_width(), neighbour->vert_stroke_width(), |
| 400 | 2.0 * neighbour->cblob()->area()/neighbour->cblob()->perimeter()); |
| 401 | } |
| 402 | |
| 403 | /** Handles a click event in a display window. */ |
| 404 | void StrokeWidth::HandleClick(int x, int y) { |
no test coverage detected