clean_mask
clean_mask(msk, ret)
Categories: Image corrections
Description
removes pixels which are not 4 connected from msk while copying into ret.
Parameters
| Name | Description |
|---|---|
msk |
Input int8 2D mask. |
ret |
Output cleaned int8 mask. |
Constraints
msk.format == 'b' or msk.format == 'B'msk.ndim == 2msk.slow_axis == 0ret.format == 'b' or ret.format == 'B'ret.n == msk.n
Overloads
| C function | Condition |
|---|---|
clean_mask |
always |
Built from commit 7ba8255fa8d680e1a1df79e67aee3873247ce69c (v0.4.5)