how can i find center line of weld defect image, and how recoginze object
4 views (last 30 days)
Show older comments
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 ,
0 Comments
Accepted Answer
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.
See Steve Eddin's Image Processing blog: http://blogs.mathworks.com/steve/2010/07/30/visualizing-regionprops-ellipse-measurements/ for an example.
6 Comments
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
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!