delta.data.seg_weights_2D¶
- delta.data.seg_weights_2D(mask: ndarray[Any, dtype[uint8]], classweights: Tuple[int, int] = (1, 1)) ndarray[Any, dtype[float32]]¶
Compute custom weightmaps designed for bacterial images where borders are difficult to distinguish
- Parameters
- mask2D array
Training output segmentation mask.
- classweightstuple of 2 int/floats, optional
Weights to apply to cells and border The default is (1,1)
- Returns
- weightmap2D array
Weights map image.