delta.data.seg_weights_2D#

delta.data.seg_weights_2D(mask, classweights=(1, 1))[source]#

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.