I want to ask that in the metrics class of sklearn package, [mutual_ info_ score] is used to calculate Shannon’s mutual information entropy? If not, is there any way to calculate it? If so, is it accurate? Because I need to calculate the mutual information entropy of two images.
Thank you for your answer. But I found that it has interpolation function, and all I want is to calculate the similarity value of two images. I delete a part of the code, I do not know if the function I achieve after doing so is correct?I hope you can help me to have a look.Thanks.
Hello @TJH123456,
We always use an interpolator as the computation is configured for a generic setting, not one where the two images have been resampled onto each other, which I assume is your case. Given this assumption, you can: (1) set interpolator to nearest neighbor (2) not do sampling, `SetMetricSamplingStrategy(registration_method.NONE) (3) set the transformation to the identity.
After reading the link you provided, I also found that the unit of display angle can be set as degree (°), instead of radian. In this way, can I input the value in the unit of angle directly when setting parameters?