Closed LoicCadour closed 8 years ago
I won't have time to see that soon. @mathildemerle can you have a look?
I can look at it indeed :)
I tested with previous dicom files and i do not have the problem, just with the manips's one.
Actually, I tested with another set of data that was working, ... and well, it used to work. It's here: https://github.com/Inria-Asclepios/data (just take one subfolder, it can take a while otherwise)
I do not have access to your link ^^'
Ok, I was the only one having the access (I don't like to share ;)) Should be good now
Indeed, we can't open them in a workspace
So, i found the code which created this problem. This is because of this PR ( @fcollot ) https://github.com/Inria-Asclepios/medInria-public/pull/48 and only the changes on itkDataImageWriterBase
and itkDataImageReaderBase
.
The bug is not in the PR you mentioned. If you print out the metadata you will see it is corrupt. The reader for the initial DICOM files (not the itkDataImageReaderBase
) has read the metadata wrong. The bug existed before, and this PR only revealed it because it encapsulates all the metadata in the ITK dictionary (as opposed to before where only specific keys where encapsulated).
We could spend days trying to find the original bug in the medInria ITK readers, but I found a workaround by just checking if the metadata is in the metadata registry before encapsulating it.
Import a DICOM folder/files and drop it in Visualisation : "Operation failed"
If you load the file and visualise it, it works. If you import a vtk, mha file it works.