How to connect points in a binary image in matlab

前端 未结 1 601
星月不相逢
星月不相逢 2021-01-06 18:30

I have a binary image with several points as below:

\"enter

How can I make a c

相关标签:
1条回答
  • 2021-01-06 19:01

    You can use roipoly to create a mask defined by the points.
    Given a binary mask you can use bwmorph(BW,'remove'); to get the boundary and you are done.

    The only problem is determining the order of the points, different order defines different mask. This one you'll have to figure for yourself.

    Example of ambiguity in ordering the points:
    enter image description here

    0 讨论(0)
提交回复
热议问题