I think you should use two-dimensional fast Fourier transform. It might be easier to use GIMP / Photoshop first if the filter allows it.
I assume that the CC sensor was broken (it is good for old problems with the scanner). Maybe electric distortion when he read the camera sensor. Such signals in theory are repetitive in nature. I do not think this was caused by the incorrect translation of colordepth / colorspace
If you like the code, you can also write your own pixel-based filter in which you take x vertical pixels (say 20 or so), comparing them to the next vertical line of 20 pixels. Compare with HSL (L lightnes), not RGB. Of all the pixels, the calculation of brightness changes in this way.
Then, to check for a pixel, H (heu) is within the range of neighboring pixels, take the average scale of their brightness (ea take 30 pixels horizontally, calculate the average brightness of the first 10 and last 10 pixels, apply this brightness to the central pixel 15, ... // 30, 15, 10 try to find what works well
Since you have whole strokes that seem brighter / darker, such a filter will smooth out this action, the difficulty is to remain other patterns (wings are less distorted), knowing what color space the sensor could take for a better solution HSL, maybe HSV or so ..
source share