BSc dissertation · 2024

Underwater Image Enhancement

I trained and evaluated generative models to restore colour and contrast underwater, then tested whether their corrections stayed consistent over time.

Follow the dive log

A single pixel column tells a longer story

I stacked the centre column of each frame into a single image so I could compare colour shifts and edge jitter across time.

Original
Original centre columns stacked downward in time
Enhanced
Enhanced centre columns stacked downward in time

Scroll or swipe sideways · Arrow keys to scrub · Space to pause or resume0.0 s

Each strip stacks the marked centre columns at 24 frames per second. Time runs downward.

Dive log

By comparing the same clip before and after correction, I could look for both colour recovery and flicker.

Original
Enhanced

Red attenuates fastest with distance. The dashed curves show the starting signal before illustrative correction.

Scroll or swipe sideways · Arrow keys to scrub · Space to pause or resume

RGB signal

Underwater

BGRDistance →

Pix2Pix learns from paired images. CycleGAN learns from collections without matching pairs.

Scroll or swipe sideways · Arrow keys to scrub · Space to pause or resume

Light loss

Water absorbs red light faster than blue or green. Scattered light softens the contrast. I used estimated depth and a light attenuation model to make synthetic pairs: a clear image and a degraded version with a known target.

Model

I trained Pix2Pix on synthetic pairs and CycleGAN on unpaired collections I assembled. I modified CycleGAN to take consecutive frames and output either one frame or a sequence, and tested separate depth and video losses with Pix2Pix.

Result

I tested temporal consistency on a clip left out of training. I compared colour bands and the edges of a pole over time. Video-to-image CycleGAN gave smoother edges, and depth-loss Pix2Pix gave the best qualitative balance of colour and consistency on that clip.