Refactor Stain Normalization
Description
This PR refactor stain normalization to support channel first input (instead of channel last), and modifies the code to be more readable with more meaningful names.
Status
Ready
Types of changes
- [x] Breaking change (fix or new feature that would cause existing functionality to change).
- [x] New tests added to cover the changes.
- [x] Integration tests passed locally by running
./runtests.sh -f -u --net --coverage. - [x] Quick tests passed locally by running
./runtests.sh --quick --unittests. - [x] In-line docstrings updated.
- [x] Documentation updated, tested
make htmlcommand in thedocs/folder.
Hi @drbeh there's a discussion about rearranging the pathology modules into monai.transforms, monai.data etc, perhaps we can include those changes together within this one? (please see https://github.com/Project-MONAI/MONAI/milestone/36)
also do we want to keep the previous names as alias so that it's backward compatible?
Hi @drbeh there's a discussion about rearranging the pathology modules into
monai.transforms,monai.dataetc, perhaps we can include those changes together within this one? (please see https://github.com/Project-MONAI/MONAI/milestone/36)also do we want to keep the previous names as alias so that it's backward compatible?
Hi @wyli, that's right! but it would make it much harder for reviewing if we combine rearranging all components and refactoring this component together. This PR is ready for review so, while I'm working on the re-organizing pathology components, why don't we review and merge it?
@wyli can we have this PR reviewed and merged?
Hi, we haven't finished the discussions in overall design and naming convention https://github.com/Project-MONAI/MONAI/issues/3868, please could you work on that first?
Hi, we haven't finished the discussions in overall design and naming convention #3868, please could you work on that first?
Hi @wyli, I'm not sure how it is related. Can you let me know what exactly you want for this stain normalizer specifically? I can revert the name of the components here if that's the problem.
Hi, we haven't finished the discussions in overall design and naming convention #3868, please could you work on that first?
Hi @wyli, I'm not sure how it is related. Can you let me know what exactly you want for this stain normalizer specifically? I can revert the name of the components here if that's the problem.
Actually, never mind! We'll review it when we are adding it to monai core.