Implementing ridge detection

后端 未结 3 1720
说谎
说谎 2021-02-06 08:23

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

3条回答
  •  你的背包
    2021-02-06 09:07

    Maybe you need to think in terms of cleaning up the line you already have, rather than a Canny-like edge detection. It feels like you should be able to do something with image morphology, in particular I'm thinking of the skeletonize and ultimate eroded points type operations. Used appropriately these should remove from your image any features which are not 'lines' - I believe they're implemented in Intel's OpenCV library.

    You can recover a single line from your double line generated using the Canny filter using one dilate operation followed by 3 erodes (I tried it out in ImageJ) - this should also remove any edges.

提交回复
热议问题