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 comentarios

KSSV
KSSV el 5 de Oct. de 2020
Read about imcrop.
Rik Steens
Rik Steens el 5 de Oct. de 2020
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

Iniciar sesión para comentar.

 Respuesta aceptada

Rik
Rik el 5 de Oct. de 2020

0 votos

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.

Más respuestas (0)

Categorías

Más información sobre Images en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 4 de Oct. de 2020

Respondida:

Rik
el 5 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by