ridge detection

Perform ridge detection