Skip to content

lliss/rethink-2018-h-and-e-normalization-matlab

Repository files navigation

H&E color normalization - MATLAB

MATLAB functions for color normalization of H&E stained histology slides.

Usage

>> sampleImage = imread('/path/to/histology/sample_image.tif')
>> fullImage = imread('/path/to/histology/full_image.tif')
>> [structureMap, lumen, nuclei, stroma, cytoplasm] = colorassign_manual(loadedImage)
>> classifier = train_classifier(loadedImage, structureMap, lumen, nuclei, stroma, cytoplasm)
>> classified_image = color_classify(fullImage, classifier)
>> load('target.mat')
>> normalizedImage = color_normalize(fullImage, target, classified)
>> imwrite(normalizedImage, '/path/to/output/normalized.tif')

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages