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

Method DeleteBox

deps/tesseract/ccstruct/boxword.cpp:169–174  ·  view source on GitHub ↗

Deletes the box with the given index, and shuffles up the rest. Recomputes the bounding box.

Source from the content-addressed store, hash-verified

167// Deletes the box with the given index, and shuffles up the rest.
168// Recomputes the bounding box.
169void BoxWord::DeleteBox(int index) {
170 ASSERT_HOST(0 <= index && index < length_);
171 boxes_.remove(index);
172 --length_;
173 ComputeBoundingBox();
174}
175
176// Deletes all the boxes stored in BoxWord.
177void BoxWord::DeleteAllBoxes() {

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected