Blobs.plot_box#
- Blobs.plot_box(*args, **kwargs: Any) None[source]#
Plot a bounding box for the blob using Matplotlib
- Parameters:
arg
kwargs – arguments passed to
plot_box
Plot the bounding box of a blob or blobs on the current Matplotlib axes.
Example:
>>> from machinevisiontoolbox import Image >>> im = Image.Read("sharks.png") >>> blobs = im.blobs() >>> blobs.plot_box(color="yellow") # solid yellow box for all blobs
Example:
>>> blobs[0].plot_box('b--') # blue dashed box >>> blobs[1].plot_box(color="blue", linestyle="--") # blue dashed box >>> blobs[2].plot_box(color="g") # solid green box >>> blobs[3].plot_box(color="r", linewidth=4)
- Seealso:
plot_labelboxplot_centroidplot_perimeterplot_box