Any additional dicom metadata for tio.Image ? #439
-
|
Hi, I'm exploring torchio for mammograms. Re tio.Image when the source docs say: How do I call this? My dicoms have tags like this: Can I reference any dicom metadatum load when I call tio.Image() ? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Hi, @jamesjjcondon. That just means that you can add your own keys and values to
I would go for the 3rd one. I think you can easily get the tags using Would any of these work? |
Beta Was this translation helpful? Give feedback.
Hi, @jamesjjcondon. That just means that you can add your own keys and values to
Image. If you want to keep the DICOM tags, we have multiple options:Imageandio.read_imageso the DICOM tags are kept. This would mean changing multiple things in the libraryloadmethodtags_dict = get_metadata(path)that you call before instantiating the image, then you can do e. g.image = tio.ScalarImage(path, **tags_dict)I would go for the 3rd one. I think you can easily get the tags using
pydicomor evenSimpleITK.Would any of these work?