CheckLabelShaped to check and correct label shapes#5606
CheckLabelShaped to check and correct label shapes#5606wyli merged 14 commits intoProject-MONAI:devfrom myron:analyzer
Conversation
Signed-off-by: myron <[email protected]>
Signed-off-by: myron <[email protected]>
Signed-off-by: myron <[email protected]>
|
Hi @myron thank you for the PR and having me to review it. I have a question for the other metadata in the image, such as the |
Signed-off-by: myron <[email protected]>
it's designed to correct a tiny shape mismatch, due to some datasets are incorrectly saved. The correction is just a view voxels, I don't think we need to update affine or spacing. @mingxin-zheng I've updated the branch, please check |
|
Signed-off-by: myron <[email protected]>
|
EDIT: test has passed after the rerun, all good! the windows test fails (due to some unrelated reason), @wyli can you take a look plz
|
|
Hi @myron , can you also update the docstring in DataAnalyzer about the shape check? Since the difference is hardcoded to be 5 now, I think the users need to be informed about this too. |
Signed-off-by: myron <[email protected]>
ok, I added more doc strings, and made it an options for a user to change @mingxin-zheng plz check |
Signed-off-by: myron <[email protected]>
|
/build |
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
|
/build |
adds CheckLabelShaped transform under monai.apps.auto3dseg:
We also already have this auto-correction in DataAnalyzer, and with this transform, DataAnalyzer logic is simplified.