필터 지우기
필터 지우기

How to calculate this crack from this image

조회 수: 5 (최근 30일)
Dio Donaika
Dio Donaika 2012년 8월 27일
How to calculate crack from this image, i have picture ceramic and i want to calculate from this image, there are any defect from this image you can see this below
you can see, there are cracks in the image defects how can I calculate the length of cracks in the image. I have to ask where else confused please help

채택된 답변

Image Analyst
Image Analyst 2012년 9월 6일
You might want to skeletonize with the bwmorph() function. Then all you will have are the centerlines of the cracks.
binaryImage = bwmorph(binaryImage, 'skel', inf');
Then call regionprops and ask for the area which will be the length of the cracks in pixels.
measurements = regionprops(binaryImage, 'Area');
  댓글 수: 6
Dio Donaika
Dio Donaika 2012년 9월 6일
What if I want to get how many cracks in the amount not in the array, and what if I want to get the longest and shortest of these cracks.
thanks so much for your attention and help my problem. ^_^
Image Analyst
Image Analyst 2012년 9월 6일
That can all be done by examining the measurements returned by regionprops(). Have you studied my image segmentation tutorial yet, where it does that kind of stuff? http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

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

추가 답변 (1개)

Walter Roberson
Walter Roberson 2012년 8월 27일
How does this question differ from your existing question at http://www.mathworks.co.uk/matlabcentral/answers/41089-crack-detection ?
  댓글 수: 5
Image Analyst
Image Analyst 2012년 8월 27일
They seem the same to me. Walter or I can delete this question later today and you can follow up on your prior thread. But it looks like your professors are not letting you use any code given to you by senior developers (like me) - that's what it seemed like you said - so I guess we're at the point where you need to take over.
Dio Donaika
Dio Donaika 2012년 8월 27일
thanks for help, I might be any suggestions for this problem. but i just want to learn and do not expect the code if you feel I am expecting from your code, yes indeed I expected. it is to learn so that I can understand. because learning from examples is the one - the only way to learn.
previous question I asked about the best way to detect defects on the surface of the ceramic is not included for the calculation, because the code that I wrote for the detection using the same method as before. I am in order to replace it and I am confused to use the best method.
for this question to calculations and I think the first question representing this question. I am so sorry it please delete this question

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

Community Treasure Hunt

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

Start Hunting!

Translated by