-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Hi,
I came across the following reference to MultiMacenkoNormalizer in the paper "MULTI-TARGET STAIN NORMALIZATION FOR HISTOLOGY SLIDES":
SOFTWARE IMPLEMENTATION
We make our implementation available in the torchstain2 normalization library. Our method is contained in the MultiMacenkoNormalizer class. A code snippet is presented below.
from torchstain.normalizers import *
# Sample random images
ref_images = sample_random_images(dataset, N)
# Initialize and fit the normalizer
normalizer = MultiMacenkoNormalizer('avg-post')
normalizer.fit(ref_images)
# Normalize an image
img = next(iter(dataset))
norm, _, _ = normalizer.normalize(img)
Could you please direct me to the location of the implementation of the MultiMacenkoNormalizer class within the repository? I would appreciate any guidance on where I can find the corresponding code.
Thank you!
andreped
Metadata
Metadata
Assignees
Labels
No labels