Search code examples
image-processingopencvmedial-axis

Medial axis(orthogonal skeletonization) of blobs


I need to obtain something like is shown on these pictures:

enter image description here enter image description here

I think it's relative to medial axis transform, but I need vertical or horizontal lines only. any suggestions?


Solution

  • Thinning should work, though in standard implementations it's hard to enforce desired directions (vertical or horizontal here).