Engauge Digitizer 2
|
Subclass of GridHealerAbstractBase for vertical lines. More...
#include <GridHealerVertical.h>
Public Member Functions | |
GridHealerVertical (GridLog &gridLog, const DocumentModelGridRemoval &modelGridRemoval) | |
Single constructor. | |
virtual void | applyMutualPairs (const QImage &image) |
Apply mutual pair points after all grid removal is done. | |
virtual void | doHealingAcrossGaps (QImage &image) |
Guts of the algorithm in which sequences of black pixels across the gap from each other are filled in. | |
![]() | |
GridHealerAbstractBase (GridLog &gridLog, const DocumentModelGridRemoval &modelGridRemoval) | |
Single constructor. | |
virtual | ~GridHealerAbstractBase () |
void | addMutualPair (int x0, int y0, int x1, int y1) |
Add two points on either side of a gap. Later, after removal, the black points will be processed. | |
void | healed (QImage &image) |
Return healed image after grid removal. | |
Additional Inherited Members | |
![]() | |
static int | pixelCountInRegionThreshold (const DocumentModelGridRemoval &modelGridRemoval) |
Threshold number of pixels in a region to be considered too-small or big-enough. | |
![]() | |
void | fillTrapezoid (QImage &image, int xBL, int yBL, int xBR, int yBR, int xTR, int yTR, int xTL, int yTL) |
Fill trapezoid with bottom left, bottom right, top right, and top left points. | |
GridLog & | gridLog () |
Logging get method. | |
double | maxPointSeparation () const |
Max point separation get method. | |
DocumentModelGridRemoval & | modelGridRemoval () |
DocumentModelGridRemoval get method. | |
const MutualPairHalves & | mutualPairHalvesAbove () const |
Mutual pair halves for below grid line. | |
const MutualPairHalves & | mutualPairHalvesBelow () const |
Mutual pair halves for above grid line. | |
bool | pointsAreGood (const QImage &image, int x0, int y0, int x1, int y1) const |
Apply blackPixelRegionIsBigEnough to regions around each of two points. | |
void | saveGapSeparation (double gapSeparation) |
Gap separation set method. | |
Subclass of GridHealerAbstractBase for vertical lines.
Definition at line 20 of file GridHealerVertical.h.
GridHealerVertical::GridHealerVertical | ( | GridLog & | gridLog, |
const DocumentModelGridRemoval & | modelGridRemoval ) |
Single constructor.
Definition at line 13 of file GridHealerVertical.cpp.
Apply mutual pair points after all grid removal is done.
Implements GridHealerAbstractBase.
Definition at line 20 of file GridHealerVertical.cpp.
Guts of the algorithm in which sequences of black pixels across the gap from each other are filled in.
Specifically, trapezoids with endpoints separated by no more than the closest distance are filled in. A greedy algorithm is used which makes each trapezoid as big as possible
Implements GridHealerAbstractBase.
Definition at line 44 of file GridHealerVertical.cpp.