how can i find center line of weld defect image, and how recoginze object
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
thet aung
am 9 Apr. 2014
Kommentiert: ah gh
am 4 Mär. 2016
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 Kommentare
Akzeptierte Antwort
Image Analyst
am 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 Kommentare
ah gh
am 4 Mär. 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
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!