BinarizeTransform
Bases: OnlyInstMapTransform
__call__ ¶
Generate a binary mask from instance labelled mask.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
inst
|
ndarray
|
Instance labelled mask. Shape (H, W). |
required |
Returns:
Type | Description |
---|---|
ndarray
|
np.ndarray: Binary mask. Shape: (H, W). Dtype: uint8 |