- sunkit_image.granule.segments_overlap_fraction(segment1, segment2)#
Compute the fraction of overlap between two segmented
Designed for comparing output Map from
segmentwith other segmentation methods.
GenericMap) – Main
GenericMapto compare against. Must have 0 = intergranule, 1 = granule.
GenericMap) – Comparison
GenericMap. Must have 0 = intergranule, 1 = granule. As an example, this could come from a simple segment using sklearn.cluster.KMeans
float) – The numeric confidence metric: 0 = no agreement and 1 = complete agreement.