Problem: This image of the Kepler Track, New Zealand (taken by my brother) has vertical stripes where the automatic panorama mode on his camera has adjusted to changing lighting conditions. How do we remove the stripes?
Step 1: Read into numpy using matplotlib.image
Step 2: Split into component bands (in this case red, green and blue)
Step 3: For each column of the image, sample the surround bit of sky
Step 4: Compare the sampled area with the sky of the column. If there’s a difference correct the whole column.
Step 5: Repeat for the full image
Step 6: Recombine the bands
Step 7: Compare and enjoy