필터 지우기
필터 지우기

how can i get the average line width/thickness (in pixels) and No. of turns of a hand-drawn spiral image.

조회 수: 10 (최근 30일)
Hi,
I am working on a project and a small part of that project is to have an image of a spiral drawn by hand (image attached) and get the average thickness of the spiral trace/line and its no. of turns/loops.
If someone can help me with this I will be really grateful.
Thank You

채택된 답변

Image Analyst
Image Analyst 2023년 2월 13일
I do that in my demo. Basically you get a binary image of your shape. Then you compute it's skeleton and Euclidean Distance Transform. Then multiply those two images to get the width everywhere. Then take the histogram of the image to get the distribution of widths.
Change the demo to use your image and make sure you threshold to get dark blobs instead of light blobs. Let me know if you can't figure it out.
  댓글 수: 2
shron ikims
shron ikims 2023년 2월 17일
Thank You @Image Analyst this worked very well, and solved the problem bogging my mind since days.
Image Analyst
Image Analyst 2023년 2월 19일
@shron ikims If this Answer solves your question, then could you please click the "Accept this answer" link to award the answerer with "reputation points" for their efforts in helping you? They'd appreciate it. Thanks in advance. 🙂 Note: you can only accept one answer (so pick the best one) but you can click the "Vote" icon for as many Answers as you want. Voting for an answer will also award reputation points.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by