필터 지우기
필터 지우기

How to transform a broken line into a simple line with the same length?

조회 수: 1 (최근 30일)
Donghui  Sun
Donghui Sun 2013년 9월 14일
Just as the question title shows, I want to convert a broken line into a line with same length.The example image is here.
The image is skel of a object and is obtained by using the function bwmorph(, 'skel', Inf).The red star points in the image are the branch points. The yellow points denote the endpoints of the branches.
What should I do to turn the spine which has the red star points into line with same length and keep the relative position of the yellow points?
Any suggestion or clue?

답변 (1개)

Image Analyst
Image Analyst 2013년 9월 14일
Have you tried the "spur" option in bwmorph()?
  댓글 수: 5
Image Analyst
Image Analyst 2013년 9월 15일
Upload a photo without annotation if you need me to show you.
Donghui  Sun
Donghui Sun 2013년 9월 16일
A big thanks in advance. As the original image are fits format which is only used widely in the solar image processing, I upload the .mat file rather than the original image at http://pan.baidu.com/share/link?shareid=1990596554&uk=2854878658. The password of extracting this .mat file is wb0h.
Look forward to your suggestion.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by