skimage2.measure.intersection_coeff#
- skimage2.measure.intersection_coeff(image0_mask, image1_mask, mask=None)[source]#
Fraction of a channelâs segmented binary mask that overlaps with a second channelâs segmented binary mask.
- Parameters:
- image0_mask(M, N) ndarray of dtype bool
Image mask of channel A.
- image1_mask(M, N) ndarray of dtype bool
Image mask of channel B. Must have same dimensions as
image0_mask.- mask(M, N) ndarray of dtype bool, optional
Only
image0_maskandimage1_maskpixels within this region of interest mask are included in the calculation. Must have same dimensions asimage0_mask.
- Returns:
- Intersection coefficient, float
Fraction of
image0_maskthat overlaps withimage1_mask.