get_eosin_mask
Get the binary eosin mask from the eosin channel.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
img_eosin
|
ndarray
|
The eosin channel. Shape (H, W, 3). |
required |
device
|
str
|
Device to use for computation. Options are 'cpu' or 'cuda'. |
'cpu'
|
Returns:
Type | Description |
---|---|
ndarray
|
np.ndarray: The binary eosin mask. Shape (H, W). |