MCPcopy Create free account
hub / github.com/PaddlePaddle/Serving / UpdateEdgeIntoAEL

Method UpdateEdgeIntoAEL

core/predictor/tools/ocrtools/clipper.cpp:1393–1416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1391//------------------------------------------------------------------------------
1392
1393void ClipperBase::UpdateEdgeIntoAEL(TEdge *&e) {
1394 if (!e->NextInLML)
1395 throw clipperException("UpdateEdgeIntoAEL: invalid call");
1396
1397 e->NextInLML->OutIdx = e->OutIdx;
1398 TEdge *AelPrev = e->PrevInAEL;
1399 TEdge *AelNext = e->NextInAEL;
1400 if (AelPrev)
1401 AelPrev->NextInAEL = e->NextInLML;
1402 else
1403 m_ActiveEdges = e->NextInLML;
1404 if (AelNext)
1405 AelNext->PrevInAEL = e->NextInLML;
1406 e->NextInLML->Side = e->Side;
1407 e->NextInLML->WindDelta = e->WindDelta;
1408 e->NextInLML->WindCnt = e->WindCnt;
1409 e->NextInLML->WindCnt2 = e->WindCnt2;
1410 e = e->NextInLML;
1411 e->Curr = e->Bot;
1412 e->PrevInAEL = AelPrev;
1413 e->NextInAEL = AelNext;
1414 if (!IsHorizontal(*e))
1415 InsertScanbeam(e->Top.Y);
1416}
1417//------------------------------------------------------------------------------
1418
1419bool ClipperBase::LocalMinimaPending() {

Callers

nothing calls this directly

Calls 2

clipperExceptionClass · 0.85
IsHorizontalFunction · 0.85

Tested by

no test coverage detected