ewoksndreg.intensities.metrics.normalizedMutualInformationMetric#
- ewoksndreg.intensities.metrics.normalizedMutualInformationMetric(image1, image2, bins=100, image1_mask=None, image2_mask=None)[source]#
Given two images, the mutual information between the images is calculated based on an histogramm with ‘bins’ bins Masks can be given to exclude some parts of the images from the histogramm calculation Alternatively, two stacks of images can be given, where the mutual information per image pair is calculated and summed.
- Parameters:
image1 (
ndarray
)image2 (
ndarray
)bins (
int
)image1_mask (
Optional
[ndarray
])image2_mask (
Optional
[ndarray
])
- Return type:
float