33 m_blackPixelsBelow [
p0.y()] =
p0.x();
37 m_blackPixelsAbove [p1.y()] = p1.x();
62 if (m_blackPixelsBelow.count() > 0 &&
63 m_blackPixelsAbove.count() > 0) {
65 int yFirst =
qMin (m_blackPixelsBelow.firstKey (),
66 m_blackPixelsAbove.firstKey ());
67 int yLast =
qMax (m_blackPixelsBelow.lastKey (),
68 m_blackPixelsAbove.lastKey ());
84 doHealingOnBelowRange (image,
98void GridHealerVertical::doHealingOnBelowAndAboveRangePair (
QImage &image,
131void GridHealerVertical::doHealingOnBelowRange (
QImage &image,
165 doHealingOnBelowAndAboveRangePair (image,
const int INNER_RADIUS_MIN
const double HALFWIDTH_VERTICAL
Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user...
Class that 'heals' the curves after one grid line has been removed.
bool pointsAreGood(const QImage &image, int x0, int y0, int x1, int y1) const
Apply blackPixelRegionIsBigEnough to regions around each of two points.
const MutualPairHalves & mutualPairHalvesAbove() const
Mutual pair halves for below grid line.
const MutualPairHalves & mutualPairHalvesBelow() const
Mutual pair halves for above grid line.
GridLog & gridLog()
Logging get method.
double maxPointSeparation() const
Max point separation get method.
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.
void saveGapSeparation(double gapSeparation)
Gap separation set method.
virtual void doHealingAcrossGaps(QImage &image)
Guts of the algorithm in which sequences of black pixels across the gap from each other are filled in...
GridHealerVertical(GridLog &gridLog, const DocumentModelGridRemoval &modelGridRemoval)
Single constructor.
virtual void applyMutualPairs(const QImage &image)
Apply mutual pair points after all grid removal is done.
Class that does special logging for GridLog and GridRemoval classes.
void showOutputTrapezoid(const QPoint &p0, const QPoint &p1, const QPoint &p2, const QPoint &p3)
Show trapezoids that are intermediate results in GridHealer.
void showInputPixel(const QPoint &p, double halfWidth)
Show pixels that are inputs to GridHealer.
static bool pixelIsBlack(const QImage &image, int x, int y)
Return true if pixel is black in black and white image.