18 PIXEL_STATE_BACKGROUND,
19 PIXEL_STATE_FOREGROUND,
27typedef int BoundaryGroup;
30typedef int PixelStateOrBoundaryGroup;
33typedef QMap<BoundaryGroup, QPointF> GroupNumberToPoint;
50 void heal (QImage &imageToHeal);
55 void connectCloseGroups(QImage &imageToHeal);
56 void groupContiguousAdjacentPixels();
57 void recursiveSearchForAdjacentPixels (
int boundaryGroup,
61 double &rowCentroidSum,
62 double &colCentroidSum);
65 QVector<QVector<PixelStateOrBoundaryGroup> > m_pixels;
67 BoundaryGroup m_boundaryGroupNext;
70 GroupNumberToPoint m_groupNumberToCentroid;
73 GroupNumberToPoint m_groupNumberToPixel;
Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user...
Class that 'heals' the curves after grid lines have been removed.
void heal(QImage &imageToHeal)
Heal the broken curve lines by spanning the gaps across the newly-removed grid lines.
void erasePixel(int xCol, int yRow)
Remember that pixel was erased since it belongs to an grid line.