-
Notifications
You must be signed in to change notification settings - Fork 10
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
Multiple input volumes may need resampling #31
Comments
Hi @lassoan, Thanks for the update. Please let me know your thoughts. |
If it can be automated then we have no reason to ask the user to do it. We can resample all the additional images to the geometry of the first image. The only question is If the model should do it, the launcher script, or the Slicer module. The lower level the better (at lower level more information may be available about resampling requirements, optimal common resolution, etc) and it would be less dependencies on Slicer. However, if this is hard to implement at lower levels then it would be very easy to implement in the Slicer module. |
Yes, it makes sense to implement it with MONAI. Let me try to implement this as soon as the GTC is done :) |
The error reported was fixed by #33. There seems to be an error in the prostate segmentation processing workflow in that it only works if IJK axes areoriented in a certain way. Most likely the IJK to LPS matrix is simply ignored - it is not used for appropriately flipping/reordering IJK axes. However, this is a separate issue, so I'm closing this and adding a new issue for the image orientation bug: #35 |
Please upload sample images (one pair of corresponding T2 and and ADC images in separate nrrd files) into a new "TestData" release. I'll later add code to register them into theSample Data
module. This will make it easy for users to test the model.I've tried to run this on one of the ProstateX data sets from TCIA (I've uploaded them for easy access here: T2, adc). These images are of course not of the same size. I got this error:
RuntimeError: Sizes of tensors must match except in dimension 0. Expected size 384 but got size 84 for tensor number 1 in the list.
Full logs:
If I resample either the t2 to have the same geometry as adc, or adc to have the same geometry as t2 then segmentation is successful.
Is this behavior expected?
Do we need to resample all the inputs to have the same geometry?
The text was updated successfully, but these errors were encountered: