-
Notifications
You must be signed in to change notification settings - Fork 93
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
Ignore/skip/recover from files that can't be read by VTK #14
Comments
Hi Moritz,
However, when selecting (2) the biggest series, following error is generated by VTK:
If you want still to use Dicom2Mesh, you need to uncompress the DICOM first. If you are open to use something else, I can recommend to you ITK-Snap for segmenting / viewing your DICOM. Be aware that your DICOM dataset form medneo Diagnostikzentrum Berlin contains more than just the images. One can see your age, weight, size... and much more. |
Maybe there could be an error message indicating this problem (that the DICOM needs to be uncompressed)? From the error I got I figured there was an error in the data since only image 33 was mentioned. It looked to me like 0..32 were read just fine by Dicom2mesh. |
Dicom2Mesh is able to work with either the standard VTK DICOM reader or with a more sophisticated version called VTK-DICOM, another open source library. The usage of VTK-DICOM needs to be enabled when you build Dicom2Mesh |
As described in the above issue "Compressed DICOM #161", the vtk-dicom library should be build with USE_GDCM option turned on. Like that, I could open your data. |
Thank you, that worked. For reference of anyone reading this and wishing to build Dicom2mesh with the aforementioned options, this is what I did (on macOS, using Homebrew): brew install gdcm
git clone https://github.com/dgobbi/vtk-dicom.git
cd vtk-dicom
mkdir build
cd build
cmake -DUSE_GDCM=ON ..
make -j4 install
cd ..
git clone https://github.com/AOT-AG/DicomToMesh.git
cd DicomToMesh
mkdir build
cd build
cmake -DUSE_VTK_DICOM=ON ..
make -j4 |
Thank you for the helpful build summary. I added a link to it in the readme. |
I had my knee MRI'd the other day. This is the data, straight from the CD they gave me. Feel free to use it for testing your software.
Running Dicom2mesh on this, I get below error – it bails on file 33. Maybe, for starters, files that can't be read could just be ignored.
I suspect that in this case there is another issue though – that I may have to report upstream, to the VTK maintainers – as the CD is fine and no errors were reported then I copied the files.
The text was updated successfully, but these errors were encountered: