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

Method ShallowCopy

deps/tesseract/textord/tabvector.cpp:233–242  ·  view source on GitHub ↗

Copies basic attributes of a tab vector for simple operations. Copies things such startpt, endpt, range. Does not copy things such as partners, boxes, or constraints. This is useful if you only need vector information for processing, such as in the table detection code.

Source from the content-addressed store, hash-verified

231// This is useful if you only need vector information for processing, such
232// as in the table detection code.
233TabVector* TabVector::ShallowCopy() const {
234 TabVector* copy = new TabVector();
235 copy->startpt_ = startpt_;
236 copy->endpt_ = endpt_;
237 copy->alignment_ = alignment_;
238 copy->extended_ymax_ = extended_ymax_;
239 copy->extended_ymin_ = extended_ymin_;
240 copy->intersects_other_lines_ = intersects_other_lines_;
241 return copy;
242}
243
244// Extend this vector to include the supplied blob if it doesn't
245// already have it.

Callers 5

InsertCleanPartitionsMethod · 0.45
CopyMethod · 0.45
ComputeTotalOverlapMethod · 0.45
MakeSingleColumnSetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected