modosaic.segmentation.postprocessor¶
modosaic.segmentation.postprocessor ¶
SegmentationPostprocessor ¶
SegmentationPostprocessor(alpha=0.55, seed=0)
Bases: ModalityPostprocessor[list[ndarray]]
Postprocessor that saves segmentation overlays and instance maps.
Attributes:
| Name | Type | Description |
|---|---|---|
alpha |
float
|
Overlay alpha used for mask previews. |
seed |
int
|
Seed used for deterministic mask colors. |
Initialize the postprocessor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
alpha
|
float
|
Overlay alpha used for mask previews. |
0.55
|
seed
|
int
|
Seed used for deterministic mask colors. |
0
|
Source code in modosaic/segmentation/postprocessor.py
27 28 29 30 31 32 33 34 35 | |
process ¶
process(record, generated)
Create segmentation overlay and instance-map artifacts.
Source code in modosaic/segmentation/postprocessor.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | |