Skip to content

5505 - option for preserving input dtypes Load/Save#5506

Merged
wyli merged 4 commits intoProject-MONAI:devfrom
wyli:load-image-dtype
Nov 10, 2022
Merged

5505 - option for preserving input dtypes Load/Save#5506
wyli merged 4 commits intoProject-MONAI:devfrom
wyli:load-image-dtype

Conversation

@wyli
Copy link
Copy Markdown
Contributor

@wyli wyli commented Nov 10, 2022

Signed-off-by: Wenqi Li [email protected]

Fixes #5505

Description

  • provides an option to preserve the input dtype when:

    • LoadImge(dtype=None, ...)
    • SaveImage(output_dtype=None, ...)
  • deprecate dtype in NibabelReader, so the readers always preserve the dtype

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.

wyli added 2 commits November 10, 2022 10:00
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
@wyli
Copy link
Copy Markdown
Contributor Author

wyli commented Nov 10, 2022

/integration-test

Signed-off-by: Wenqi Li <[email protected]>
@wyli
Copy link
Copy Markdown
Contributor Author

wyli commented Nov 10, 2022

/build

@wyli wyli changed the title 5505 - preserve input dtypes 5505 - option for preserving input dtypes Load/Save Nov 10, 2022
@wyli wyli marked this pull request as ready for review November 10, 2022 11:39
@wyli
Copy link
Copy Markdown
Contributor Author

wyli commented Nov 10, 2022

/build

@myron
Copy link
Copy Markdown
Collaborator

myron commented Nov 10, 2022

@wyli looks great, thank you!

@wyli wyli merged commit b030839 into Project-MONAI:dev Nov 10, 2022
@wyli wyli deleted the load-image-dtype branch November 10, 2022 20:29
bhashemian pushed a commit to bhashemian/MONAI that referenced this pull request Nov 23, 2022
Signed-off-by: Wenqi Li <[email protected]>

Fixes Project-MONAI#5505

### Description
- provides an option to preserve the input dtype when:
  - `LoadImge(dtype=None, ...)`
  - `SaveImage(output_dtype=None, ...)`

- deprecate `dtype` in `NibabelReader`, so the readers always preserve
the dtype

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] 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).
- [x] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [x] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [x] In-line docstrings updated.
- [x] Documentation updated, tested `make html` command in the `docs/`
folder.

Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Behrooz <[email protected]>
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.

LoadImageD NibabelReader preserve original data type

3 participants