Blobs.plot_MER#
- Blobs.plot_MER(*args, **kwargs: Any) None[source]#
Plot minimum enclosing rectangles of blobs using Matplotlib
- Parameters:
kwargs – line style parameters passed to
plot
Plots the minimum enclosing rectangles of blob or blobs on the current Matplotlib axes.
Example:
>>> from machinevisiontoolbox import Image >>> im = Image.Read("sharks.png") >>> blobs = im.blobs() >>> blobs.plot_MER() # MEC for all blobs, different colors >>> >>> blobs[0].plot_MER("c--") # cyan dashed line >>> blobs[1].plot_MER(color="cyan", linestyle="--") # cyan dashed line >>> blobs[2].plot_MER(color="red") >>> blobs[3].plot_MER(color="orange", linewidth=3)
(
Source code,png,hires.png,pdf)
- Seealso: