After using the scanlines to determine the grid size, I bet you could apply a pass of some filter in the frequency domain to remove the artefacts created by the CRT screen! Like here [1], where the author removes a moiré pattern created by the process of printing a photo.