MATLAB Answers

Ghulam
0

How to make a round bounday on the object

Ghulam
さんによって質問されました 2019 年 11 月 2 日
最新アクティビティ darova
さんによって 回答されました 2019 年 11 月 4 日
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
on 2 Nov 2019
What determines the radius and center of the circle?
Thanks Matt J
There is no exact thing which determines the radius of this circle.

サインイン to comment.

1 件の回答

darova
Answer by darova
on 4 Nov 2019

  • 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

  0 件のコメント

サインイン to comment.



Translated by