Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intensity augmentation transform #3784

Merged
merged 9 commits into from
Feb 22, 2022

Conversation

yanielc
Copy link
Contributor

@yanielc yanielc commented Feb 10, 2022

Signed-off-by: yc7620 yaniel.cabrera20@imperial.ac.uk

Description

Intensity augmentation transform to be used as a means of data augmentation for medical imaging datasets. It was first demonstrated in Intensity Augmentation to Improve Generalizability of Breast Segmentation Across Different MRI Scan Protocols that intensity augmentation helps generalize a model. It has been used in other works such as Image translation for medical image generation: Ischemic stroke lesion segmentation.

The transform works by replacing the intensities of an image by new values uniformly sampled from all possible intensity values in the input image. Below is an example of the application of the transform on an MRI image:

intensity_remap

Status

Work in progress

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@yanielc
Copy link
Contributor Author

yanielc commented Feb 10, 2022

Hi, not entirely sure why there are 22 changed files. I only added transforms/intensity/array.py and transforms/__init__.py to my commit.

@wyli
Copy link
Contributor

wyli commented Feb 10, 2022

/black

@wyli
Copy link
Contributor

wyli commented Feb 10, 2022

Probably your local version of black is out of date...

Signed-off-by: monai-bot <monai.miccai2019@gmail.com>
yc7620 and others added 3 commits February 22, 2022 09:47
Signed-off-by: yc7620 <yaniel.cabrera20@imperial.ac.uk>
Signed-off-by: yc7620 <yaniel.cabrera20@imperial.ac.uk>
@wyli
Copy link
Contributor

wyli commented Feb 22, 2022

/black

monai-bot and others added 2 commits February 22, 2022 11:11
Signed-off-by: monai-bot <monai.miccai2019@gmail.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
@wyli
Copy link
Contributor

wyli commented Feb 22, 2022

/build

@wyli wyli enabled auto-merge (squash) February 22, 2022 11:50
@wyli wyli merged commit 56205f5 into Project-MONAI:dev Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants