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

Method InsertBox

deps/tesseract/ccstruct/boxword.cpp:151–158  ·  view source on GitHub ↗

Inserts a new box before the given index. Recomputes the bounding box.

Source from the content-addressed store, hash-verified

149// Inserts a new box before the given index.
150// Recomputes the bounding box.
151void BoxWord::InsertBox(int index, const TBOX& box) {
152 if (index < length_)
153 boxes_.insert(box, index);
154 else
155 boxes_.push_back(box);
156 length_ = boxes_.size();
157 ComputeBoundingBox();
158}
159
160// Changes the box at the given index to the new box.
161// Recomputes the bounding box.

Callers 7

create_cube_box_wordMethod · 0.45
SetupFakeMethod · 0.45
ReplaceCurrentWordMethod · 0.45
SetWordTruthMethod · 0.45
SetSymbolTruthMethod · 0.45
SetupNormTruthWordMethod · 0.45
SplitBundleMethod · 0.45

Calls 3

insertMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected