How to smooth edges of polygons?
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I created a image (uint8) with multiple filled polygons. First, I used the vision.ShapeInserter with 'Antialiasing' but this was not enough. Also insertShape + 'SmoothEdges' produced insufficient smooth edges. Are there any other ways how I can fix that?
Looking forward to your suggestions. Thanks!
0 comentarios
Respuestas (2)
Andrew Chen
el 12 de Oct. de 2017
Ex:
se = strel('disk',5);
new_img = imopen(original_image,se);
Hope this helps!
3 comentarios
Andrew Chen
el 13 de Oct. de 2017
Did Image Analyst's answer get you what you wanted? Otherwise, maybe you could clarify what you mean by "smooth edges". What in your mind constitutes a sufficiently smooth edge?
Image Analyst
el 13 de Oct. de 2017
You can smooth the edges with a filter. See attached.
8 comentarios
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!