GLSL Signed Distance Function Demo

This demo is based on the work of Lefohn et al. (TVCG' 03) on level sets. The distance field is inititialized with a circular region and iteratively approximates the target region by applying a simple speed function moving the distance field towards the target intensity.

Processed image

Click and drag in image to center seed point (selecting target intensity value) and adjust seed radius.

Log output...

Iterations Alpha Epsilon

Source Image and Seed Region