correction of rough edges for image detection

3 visualizaciones (últimos 30 días)
jason wright
jason wright el 19 de En. de 2019
Comentada: Image Analyst el 7 de Feb. de 2019
I am working on code to detect the edges of printed capacitors that we print in my lab.
I have little (honestly almost none) knowledge about image processing. I have been able to write some code that I can find the edges of a capacitor in an image and label those edges with markers. This code right now only works with a test image I made in paint. However when I try to run it on a real image I find broken, false or non-dectected lines.
I do not have any idea how to improve this. I have looked through and played with all the functions in the image processing tool box. Some made minor improvements but I am still not able to get the correct detection.
I have read that you can blur the edges then re-detect them. I was not sure however if this will change the length or position of the line/edge. If this is true this method will not work for me since I need as precise measurements as I can get.
I have attached the simple paint image I made, a real image of a printed capacitor, and the code.
If anyone has any suggestions I would be deeply appreciative. Thank you all for your help.
  6 comentarios
jason wright
jason wright el 6 de Feb. de 2019
Hi Image
If you have a chance could you look at the latest code I have uploaded and see if I made a mistake. I followed what you outlined but I do not think I am getting the correct answer.
Image Analyst
Image Analyst el 7 de Feb. de 2019
No - lots of problems with your code. Just see my attached code.
0000 Screenshot.png
0001 Screenshot.png

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by