How to get the centerline of an image?

2 次查看(过去 30 天)
missC
missC 2014-7-13
评论: missC 2014-7-15
Hi, I want to extract the centerline of 2D images (as attached). I was using thinning and Skeleton function before, but somehow the result is not so accurate as it make the corner of the image distorted. I was intended to find sharp corner of the images and maybe centerline extraction will yield a good result.
Great Thanks

回答(1 个)

Image Analyst
Image Analyst 2014-7-13
How accurate do you need it? How did you generate the image in the first place? If you made the image, can't you get the line information from when you generated the image? What are you going to do with the image once it's skeletonized? Maybe you don't need "sharp" corners, depending on what your plans are for the image.
  1 个评论
missC
missC 2014-7-15
Hi, I want to detect a corner from each edges in the image. As you can see due to weak pre-processing, the corner detected is not at the real edges or not precisely detected at the corner. Or maybe, I have to use other centerline extraction besides thinning or skeleton function. For the original image, i use some pre-processing such as morphological operations. Hope you can help me, Thanks

请先登录,再进行评论。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by