MCPcopy Create free account
hub / github.com/creatale/node-dv / PrintBoxWidths

Function PrintBoxWidths

deps/tesseract/textord/strokewidth.cpp:395–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395static 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. */
404void StrokeWidth::HandleClick(int x, int y) {

Callers 2

HandleClickMethod · 0.85
FixBrokenCJKMethod · 0.85

Calls 6

horz_stroke_widthMethod · 0.80
vert_stroke_widthMethod · 0.80
cblobMethod · 0.80
bounding_boxMethod · 0.45
areaMethod · 0.45
perimeterMethod · 0.45

Tested by

no test coverage detected