ENH: Add regression test for reading legacy multi-frame DICOM#315
Conversation
|
@thewtex can you remind me how I can access the image files used in testing? |
|
@fedorov this particular file is here: https://data.kitware.com/#item/5c16a3388d777f072bd41f38 In general, you can check out the branch, and run Additional information can be found in ITK/Documentation/Data.md. |
| ) | ||
|
|
||
| itk_add_test(NAME itkGDCMLegacyMultiFrameTest | ||
| COMMAND ITKIOGDCMTestDriver |
There was a problem hiding this comment.
I think it would be quite helpful to make this more accessible to broader group of users if direct download pointers for the datasets could be added in the comments here. It takes quite a lot of time and space to checkout/configure/download ITK source and data. I also think there should be a link to the original MR series that was converted into the legacy enhanced dataset, since the ultimate test is whether the geometry (and slice order) of the image volume is the same while loading from the original non-enhanced series and the legacy enhanced one.
There was a problem hiding this comment.
Here's the link to the original non-enhanced MR series: https://www.dropbox.com/s/8m7ugu4cmw83fvd/dicoms-anon.zip?dl=0
There was a problem hiding this comment.
I think it would be quite helpful to make this more accessible to broader group of users if direct download pointers for the datasets could be added in the comments here. It takes quite a lot of time and space to checkout/configure/download ITK source and data.
Yes -- after merged and the nightly data upload occurs, the data will be available here.
I also think there should be a link to the original MR series that was converted into the legacy enhanced dataset, since the ultimate test is whether the geometry (and slice order) of the image volume is the same while loading from the original non-enhanced series and the legacy enhanced one.
Here's the link to the original non-enhanced MR series: https://www.dropbox.com/s/8m7ugu4cmw83fvd/dicoms-anon.zip?dl=0
Thanks for the link, I will add a reference to this in a comment.
|
Compared with loading the original non-enhanced dataset (linked above) the order of slices is reversed (reconstruction is the same, but orientation is LR vs RL). Is this the expected behavior? |
This sounds like an issue in how the non-enhanced dataset was converted to the multiframe file? We are only testing how ITK is interpreting the resulting multiframe file here. |
Ensure that origin and spacing and identified correctly (the image comparison checks this metadata). Test image from David Clunie. See also the discussion: https://discourse.slicer.org/t/dicom-multiframe-support/4806/9
f05fcff to
3638fe7
Compare
| #include "itkImageFileReader.h" | ||
| #include "itkImageFileWriter.h" | ||
|
|
||
| // This test verifies that we obtain the correct origin and spacing for a |
There was a problem hiding this comment.
I am not sure I understand the actual goal of this test. I do not see a comparison being done against the original (legacy) MR Image Storage Series. I guess someine validated it both are the same, but it would be good to mention that in the test.
There was a problem hiding this comment.
This test is checking the mf.dcm's origin and spacing are read and interpreted correctly -- they previously were not. The conversion of the original (legacy) MR Image Storage Series is not addressed here. The discussion is provided for reference.
Ensure that origin and spacing and identified correctly (the image
comparison checks this metadata).
Test image from David Clunie.
See also the discussion:
https://discourse.slicer.org/t/dicom-multiframe-support/4806/9