imgviz.draw.triangle

imgviz.draw.triangle(src, center, size, fill=None, outline=None)[source]

Draw triangle on numpy array with Pillow.

Parameters:
  • src (numpy.ndarray) – Input image.

  • center ((2,) array-like) – center is (cy, cx).

  • size (float) – Diameter to create the star.

  • fill (int or (3,) array-like, optional) – RGB color to fill the mark. None for no fill. (default: None)

  • outline (int or (3,) array-like, optional) – RGB color to draw the outline.

Returns:

dst – Output image.

Return type:

numpy.ndarray