I recently acquired a second hand Starlight Xpress MX716 mono CCD camera, and I've found that when used in the high resolution mode there is a venetian blind artefact in the images it generates. The sensor is of sufficient vintage that it must be read in an interlaced mode, all the odd rows and then all the even rows. This results in the two sets of rows having a noticeably different brightness, resulting in the so called venetian blind effect.
Correcting this seemed the perfect job for PixelMath, however I'm far from proficient with that tool. Here's what I've come up with so far:-
iif ($T > pixel($T, x(), y()+1), mean($T, pixel($T, x(), y()+1)), $T)
The conditional clause in the iif statement is a rather crude attempt to detect if I'm in the 'bright' row, by just seeing if the pixel has a higher value than the same x coordinate pixel in the row below. Obviously this won't always be the case, but I haven't figured out an alternative. If this is a "bright row" pixel I replace it with the mean of that pixel and it's darker pair in the row below.
This appears to visually reduce the appearance of the venetian blind effect, but also squashes the image slightly, and to my untrained eye, blurs it slight too.
I wonder if anyone can offer any insight on this please? An improved PixelMath formula, a "correct" way to address this issue or perhaps an alternative tool?
Attached are crops of the before and after, using my crude attempt with PixelMath.
This dropbox link
https://www.dropbox.com/s/604dsri47obt7gf/NGC7635_Bubble_Nebula_MX716_Linear.fit?dl=0 contains the full image (only 1.67MB) to play with if you wish. It is an unprocessed linear image, the immediate result of the ImageIntegration tool.
Thanks in advance.
Richard