How to smooth the rough edge on 2D image?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I tried erode followed by a dilate.
The effect is not good as I want it to be.
I want the edge without any curve. It better can remove the curve and use straight line to represent those curve
I remember that there are some filter for smoothing the edge,right?
2 comentarios
Respuestas (1)
Image Analyst
el 22 de Ag. de 2014
You can try activecontour(). You can set parameters to control how smooth the boundary is. See attached demo.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175438/image.jpeg)
4 comentarios
Image Analyst
el 25 de Ag. de 2014
It's the same function. You forgot to give the error message. Please copy and paste ALL THE RED TEXT. Don't snip or paraphrase like you did. Did my demo run? That should run with no errors whatsoever.
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!