How to make a round bounday on the object

2 次查看(过去 30 天)
Hi,
Using the example i have successfully drawn the outline on the object.
OUTLINE.png
But it is showing glitches of up and downs on the surface.
I want to get rid of it and make a circular outline around my object.
Cany anyone pls help me in doing it.
Thanks
  2 个评论
Matt J
Matt J 2019-11-2
编辑:Matt J 2019-11-2
What determines the radius and center of the circle?
Ghulam
Ghulam 2019-11-4
Thanks Matt J
There is no exact thing which determines the radius of this circle.

请先登录,再进行评论。

回答(1 个)

darova
darova 2019-11-4
  • Use edge to detect edge
  • Use find to get coordinates (rows and columns of edge)
  • Calculate some center (approximately)
  • 123.png
  • Use cart2pol to calculate angle of each pixel
  • sort pixels by angle
  • Calculate new edge with smooth
Or another way:
  • Use edge to detect edge
  • imdilate object
  • Try bwmorph(I,'thin',inf) tu return to original image

Community Treasure Hunt

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

Start Hunting!

Translated by