3595 3766 adds a base writer and an itk writer#3674
Merged
wyli merged 43 commits intoProject-MONAI:devfrom Feb 7, 2022
Merged
Conversation
db5fa7f to
5c05395
Compare
7 tasks
5c05395 to
e189fbf
Compare
Contributor
Author
|
/build |
Nic-Ma
reviewed
Jan 20, 2022
Contributor
Nic-Ma
left a comment
There was a problem hiding this comment.
Thanks for the quick implementation.
The overall logic looks good to me, except for the resample, as_channel_last logic.
Put some minor comments inline.
Thanks.
9e3dfa5 to
20d0bf9
Compare
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: monai-bot <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
cb6f9cc to
dbf44ae
Compare
Nic-Ma
reviewed
Feb 5, 2022
Signed-off-by: Wenqi Li <[email protected]>
55ac20e to
3961dfc
Compare
Contributor
Author
|
/black |
Contributor
Author
thanks Nic, I updated the PR for this use case of writing with a different spatial size: # write as 2d image, channel-first
np_data = np.arange(48).reshape(3, 4, 4)
writer = ITKWriter(output_dtype=np.uint8)
writer.set_data_array(np_data, channel_dim=0)
writer.set_metadata({"spatial_shape": (5, 5)})
writer.write("test1.png")could you review again to confirm? writer = ITKWriter(channel_dim=0)
writer.set_data_array(..., channel_dim=0)will cause confusion, so I removed the constructor's changes are in this commit 4e04de5. |
4b591f0 to
4e04de5
Compare
…t-MONAI#3768) * [DLMED] add check for devices Signed-off-by: Nic Ma <[email protected]> * [DLMED] update according to comments Signed-off-by: Nic Ma <[email protected]>
4e04de5 to
531c2ec
Compare
Signed-off-by: Wenqi Li <[email protected]>
…-writer Signed-off-by: Wenqi Li <[email protected]>
d3ad76f to
9a5fd2e
Compare
Nic-Ma
approved these changes
Feb 7, 2022
Contributor
Nic-Ma
left a comment
There was a problem hiding this comment.
Looks good to me except for 2 minor comments inline.
Thanks.
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
5736bbc to
d0bdecc
Compare
Contributor
Author
|
/build |
Contributor
Author
|
/build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Wenqi Li [email protected]
part of #3595
Description
this PR adds a writer base class and an itkwriter subclass,
internally the affines are assumed in the
RASspace to be aligned with nifti.more consistency tests will be added when the nibabelwrite is in place.
the tests are ready in #3443
Status
Ready
Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests --disttests.make htmlcommand in thedocs/folder.