Blobs.plot_MEC#

Blobs.plot_MEC(*args: Any, **kwargs: Any) → None[source][source]#

Plot minimum enclosing circles of blobs using Matplotlib

Parameters:
  • args – optional Matplotlib format string, such as "r--"

  • kwargs – line style parameters passed to plot

Plots the minimum enclosing circles of blob or blobs on the current Matplotlib axes.

Examples

>>> from machinevisiontoolbox import Image
>>> im = Image.Read("sharks.png")
>>> blobs = im.blobs()
>>> blobs.plot_MEC() # MEC for all blobs, different colors
>>> #
>>> blobs[0].plot_MEC("c--") # cyan dashed line
>>> blobs[1].plot_MEC(color="cyan", linestyle="--") # cyan dashed line
>>> blobs[2].plot_MEC(color="red")
>>> blobs[3].plot_MEC(color="orange", linewidth=3)

(Source code, png, hires.png, pdf)

../../_images/machinevisiontoolbox-Blobs-plot_MEC-1.png