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

5 views (last 30 days)
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 ,

Accepted Answer

Image Analyst
Image Analyst on 9 Apr 2014
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 Comments
ah gh
ah gh on 4 Mar 2016
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

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!