Skip to content

MultiMacenkoNormalizer #57

@yuvfried

Description

@yuvfried

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions