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

KSSV
KSSV 2020년 10월 5일
Read about imcrop.
Rik Steens
Rik Steens 2020년 10월 5일
Thanks for your response I understand that I need this function. But i want an kinf of automatic way yo detect the head of the screw and cut it off, I need this code for a bigger project

댓글을 달려면 로그인하십시오.

 채택된 답변

Rik
Rik 2020년 10월 5일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

태그

질문:

2020년 10월 4일

답변:

Rik
2020년 10월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by