How to get the centerline of an image?

2 views (last 30 days)
missC
missC on 13 Jul 2014
Commented: missC on 15 Jul 2014
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

Answers (1)

Image Analyst
Image Analyst on 13 Jul 2014
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 Comment
missC
missC on 15 Jul 2014
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

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!