I\'m trying to write a ridge detection algorithm, and all of the sources I\'ve found seem to conflate edge detection with ridge detection. Right now, I\'ve implemented the Canny
If anyone is still interested in this, here is an implementation of the ridges/valleys algorithm: C++ source code. Look for a function called get_ridges_or_valleys()
. This implementation is a 3D version of the algorithm proposed by Linderhed (2009). See page 8 of the paper for the ridges/valleys algorithm.