MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / draw_circle

Method draw_circle

utils/visualizer.py:998–1014  ·  view source on GitHub ↗

Args: circle_coord (list(int) or tuple(int)): contains the x and y coordinates of the center of the circle. color: color of the polygon. Refer to `matplotlib.colors` for a full list of formats that are accepted. radius (int

(self, circle_coord, color, radius=3)

Source from the content-addressed store, hash-verified

996 return self.output
997
998 def draw_circle(self, circle_coord, color, radius=3):
999 """
1000 Args:
1001 circle_coord (list(int) or tuple(int)): contains the x and y coordinates
1002 of the center of the circle.
1003 color: color of the polygon. Refer to `matplotlib.colors` for a full list of
1004 formats that are accepted.
1005 radius (int): radius of the circle.
1006
1007 Returns:
1008 output (VisImage): image object with box drawn.
1009 """
1010 x, y = circle_coord
1011 self.output.ax.add_patch(
1012 mpl.patches.Circle(circle_coord, radius=radius, fill=True, color=color)
1013 )
1014 return self.output
1015
1016 def draw_line(self, x_data, y_data, color, linestyle="-", linewidth=None):
1017 """

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected