how can i find center line of weld defect image, and how recoginze object

4 次查看(过去 30 天)
In welding defect image found 3 objects want center line these objects , and may i ask how can i recognize these objects for welding defect imge ,i want example code for recognize object and find center line of those .
age ,

采纳的回答

Image Analyst
Image Analyst 2014-4-9
You say you found them already, and I can tell this is the case because you must have used bwboundaries on the binary image so that you could plot the outlines in red. So just pass that binary image into regionprops and ask for the centroid. I'm not sure how you define centerline, but you can also ask for orientation (the angle) and the majoraxis length. From those 3 measurements you can probably get "the center line" according to your definition.
  6 个评论
ah gh
ah gh 2016-3-4
Hi Dear Thet Aung Your sample code in detection of welding defects is very good and helpful for me. Do you write any classifier for this weld detection?? Thanks

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by