Filling#
Filling
Parallel binary filling on arbitraily sized images.
- fill(source, sink=None, seeds=None, processes=None, verbose=False)[source]#
Fill binary holes.
Arguments
- sourcearray
Input source.
- sinkarray or None
If None, a new array is allocated.
- seedsarray or None
An array of seed points for the fill operation. If None, the border indices of the source are used as seeds.
- processes: int or None
How many CPU cores to use, None defaults to max
- verbose: bool
Whether to print verbose output
Returns
- sinkarray
Binary image with filled holes.