Label image regions
This example shows how to segment an image with image labelling. The following steps are applied:
Thresholding with automatic Otsu method
Close small holes with binary closing
Remove artifacts touching image border
Measure image regions to filter small objects

import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
from skimage import