bwperim¶
- sliceinterpolator.bwperim(bw, n=4)¶
Find the perimeter of objects in binary images. A pixel is part of an object perimeter if its value is one and there is at least one zero-valued pixel in its neighborhood.
- Parameters:
bw (Numpy array) – A binary image
n (int) – Connectivity. Must be 4 or 8 (default: 4)
- Returns:
perim – A boolean image
- Return type:
Numpy array