Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Create Sharp squares where there were filled with Imfill

1 visualización (últimos 30 días)
Andrew Luce
Andrew Luce el 3 de Jul. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hello,
I have barcode that I am creating via edge detect and imfill create the image below. Is there a way to convert the created rectangles into ones with nice sharp edges? I also wonder if its possible to correct the spacing. This is a Code-39 barcode so there is only small and large spacing that should be equivalent in size of the small and large bars present?
Thank you
Andrew
barcode edge detect.jpg
  1 comentario
Julie
Julie el 4 de Jul. de 2019
While you could do this, it will probably not be accurate enough to read as a barcode, you should try to clean up the image more before using edge detection.
If you still want to, I would locate the objects using bwpropfilt then use the positions as well as the major/minor axis to draw rectancles on a new blank image.

Respuestas (1)

Image Analyst
Image Analyst el 4 de Jul. de 2019
If you have the boundaries, use poly2mask().

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by