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

Method forward

deps/tesseract/ccstruct/pdblock.cpp:313–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311 **********************************************************************/
312
313void BLOCK_RECT_IT::forward() { //next rectangle
314 if (!left_it.empty ()) { //non-empty list
315 if (left_it.data_relative (1)->y () == ymax)
316 left_it.forward (); //move to meet top
317 if (right_it.data_relative (1)->y () == ymax)
318 right_it.forward ();
319 //last is special
320 if (left_it.at_last () || right_it.at_last ()) {
321 left_it.move_to_first (); //restart
322 right_it.move_to_first ();
323 //now at bottom
324 ymin = left_it.data ()->y ();
325 }
326 else {
327 ymin = ymax; //new bottom
328 }
329 //next point
330 ymax = left_it.data_relative (1)->y ();
331 if (right_it.data_relative (1)->y () < ymax)
332 //least step forward
333 ymax = right_it.data_relative (1)->y ();
334 }
335}
336
337
338/**********************************************************************

Callers 15

compute_bbMethod · 0.45
winding_numberMethod · 0.45
containsMethod · 0.45
rotateMethod · 0.45
reflect_in_y_axisMethod · 0.45
moveMethod · 0.45
plotMethod · 0.45
fillMethod · 0.45
overlapMethod · 0.45
get_lineMethod · 0.45
FindMatchingChoiceFunction · 0.45
print_ratings_listFunction · 0.45

Calls 6

dataMethod · 0.80
emptyMethod · 0.45
yMethod · 0.45
data_relativeMethod · 0.45
at_lastMethod · 0.45
move_to_firstMethod · 0.45

Tested by

no test coverage detected