When traying Macenko stain normalization to normalize images with that don't have perfect staining in first place, the normalization process would deteriorate the output quality. In particular, it seems that division by maxC_source is causing it:
This seems to be an intrinsic behavior from Macenko algorithm which happens when the source/target image does not show much stain variation in it. Therefore, I'm closing this issue.
Description
When traying Macenko stain normalization to normalize images with that don't have perfect staining in first place, the normalization process would deteriorate the output quality. In particular, it seems that division by
maxC_source
is causing it:It seems that returned
maxC_source
is not favorable when we don't have enough stain variation in the source image.What I Did
Consider the the target image:
and the source image:
this will be the normalized source which is clearly deteriorated:
the code to reproduce this:
The similar problem exists with Macenko normalizer in
staintools
:the code to reproduce this:
However, if you use Vahedane normalizer, the output would look desirable like this: