views:

86

answers:

1

I want to get path stroke from image using opencv. I know how to get contours but I need path of stroke (path that runs through the center of the stroke). Is it possible to get this in opencv ?

A: 

OpenCV does not have a skeletonization algorithm that allows one to get a stroke path. You would need to implement an existing algorithm, good place to start is here:

http://en.wikipedia.org/wiki/Topological_skeleton

jeff7