Engauge Digitizer
2
|
Class that 'heals' the curves after grid lines have been removed. More...
#include <GridHealer.h>
Public Member Functions | |
GridHealer (const QImage &imageBefore, const DocumentModelGridRemoval &modelGridRemoval) | |
Single constructor. | |
void | erasePixel (int xCol, int yRow) |
Remember that pixel was erased since it belongs to an grid line. More... | |
void | heal (QImage &imageToHeal) |
Heal the broken curve lines by spanning the gaps across the newly-removed grid lines. | |
Class that 'heals' the curves after grid lines have been removed.
Specifically, gaps that span the pixels in the removed grid lines are filled in, if they are less than some epsilon value
Definition at line 37 of file GridHealer.h.
void GridHealer::erasePixel | ( | int | xCol, |
int | yRow | ||
) |
Remember that pixel was erased since it belongs to an grid line.
In the image, erasure correponds to a foreground pixel being changed to the background color
Definition at line 96 of file GridHealer.cpp.