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

Method SplitOutlineList

deps/tesseract/ccstruct/split.cpp:243–258  ·  view source on GitHub ↗

Creates two outlines out of one by splitting the original one in half. Inserts the resulting outlines into the given list.

Source from the content-addressed store, hash-verified

241// Creates two outlines out of one by splitting the original one in half.
242// Inserts the resulting outlines into the given list.
243void SPLIT::SplitOutlineList(TESSLINE* outlines) const {
244 SplitOutline();
245 while (outlines->next != NULL) outlines = outlines->next;
246
247 outlines->next = new TESSLINE;
248 outlines->next->loop = point1;
249 outlines->next->ComputeBoundingBox();
250
251 outlines = outlines->next;
252
253 outlines->next = new TESSLINE;
254 outlines->next->loop = point2;
255 outlines->next->ComputeBoundingBox();
256
257 outlines->next->next = NULL;
258}
259
260// Makes a split between these two edge points, but does not affect the
261// outlines to which they belong.

Callers 1

ApplySeamMethod · 0.80

Calls 1

ComputeBoundingBoxMethod · 0.45

Tested by

no test coverage detected