Peter554 / StainTools

Tools for tissue image stain normalisation and augmentation in Python 3
MIT License
321 stars 107 forks source link

stain augmentation seems to modify contrast/intensity but not hue #22

Closed kwiechen closed 6 years ago

kwiechen commented 6 years ago

Hello, I have tried to augment image patches using different values for sigma1 and 2. Is it possible that this function perturbs contrast or intensity but not hue/color? Best regards, Kai

Peter554 commented 6 years ago

Yes that is true. As implemented here at present we augment the concentration matrix but not the stain matrix (roughly equates to hue). This may or may not be the desired result, so it is good to be aware