18 PIXEL_STATE_BACKGROUND,
19 PIXEL_STATE_FOREGROUND,
27 typedef int BoundaryGroup;
30 typedef int PixelStateOrBoundaryGroup;
33 typedef 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;
78 #endif // GRID_HEALER_H void erasePixel(int xCol, int yRow)
Remember that pixel was erased since it belongs to an grid line.
Class that 'heals' the curves after grid lines have been removed.
Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user...
void heal(QImage &imageToHeal)
Heal the broken curve lines by spanning the gaps across the newly-removed grid lines.