Crop a part of binary image
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to cut the head of the screw. I turned the image straight and cut out the white part but I can't figure out how to cut the head off. Thanks in advance.
2 Kommentare
Akzeptierte Antwort
Rik
am 5 Okt. 2020
My suggestion would be to determine the number of white pixels in each column, and use an automatic way to determine a threshold for what width is head and what width is screw. Don't use limits like '100% width' and 'smallest width', because that will miss part of the head, and might cut of all the screw.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!