Modifying borders of tissues
When segmenting clumbs of objects, such as cells in an organoid, it may happen that the segmented cells at the tissue border, touching the background are not segmented properly. In order to modify only those, it may make sense to post-process a label image by only modifying the object borders close by the background.
For demonstrating it we simulate a clumb of cells.
|
cle._ image
shape | (200, 200) |
dtype | uint32 |
size | 156.2 kB |
min | 0.0 | max | 40.0 |
|
We can erode the entire field of labels as if it was a binary image, while keeping the pixels labeled. With this, only the labels at the border to the background are modified.
|
cle._ image
shape | (200, 200) |
dtype | uint32 |
size | 156.2 kB |
min | 0.0 | max | 40.0 |
|
Just to compare, how this is different from label erosion:
|
cle._ image
shape | (200, 200) |
dtype | uint32 |
size | 156.2 kB |
min | 0.0 | max | 40.0 |
|