Engauge Digitizer  2
Public Member Functions | List of all members
GridHealerVertical Class Reference

Subclass of GridHealerAbstractBase for vertical lines. More...

#include <GridHealerVertical.h>

Inheritance diagram for GridHealerVertical:
GridHealerAbstractBase

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. More...
 
- Public Member Functions inherited from GridHealerAbstractBase
 GridHealerAbstractBase (GridLog &gridLog, const DocumentModelGridRemoval &modelGridRemoval)
 Single constructor.
 
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 Public Member Functions inherited from GridHealerAbstractBase
static int pixelCountInRegionThreshold (const DocumentModelGridRemoval &modelGridRemoval)
 Threshold number of pixels in a region to be considered too-small or big-enough.
 
- Protected Member Functions inherited from GridHealerAbstractBase
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.
 
GridLoggridLog ()
 Logging get method.
 
double maxPointSeparation () const
 Max point separation get method.
 
DocumentModelGridRemovalmodelGridRemoval ()
 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.
 

Detailed Description

Subclass of GridHealerAbstractBase for vertical lines.

Definition at line 20 of file GridHealerVertical.h.

Member Function Documentation

◆ doHealingAcrossGaps()

void GridHealerVertical::doHealingAcrossGaps ( QImage &  image)
virtual

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.


The documentation for this class was generated from the following files: