Giter VIP home page Giter VIP logo

Comments (3)

neurolabusc avatar neurolabusc commented on September 22, 2024

The single-band reference is useful because it has more contrast and signal than the subsequent multi-band image. However, you want to save them separately as they do not share the TR, T1-weighting, etc of the subsequent multi-band images. dcm2niix uses ICE_Dims to detect scans. Following Siemens convention for derived images, the series number for SBRef images is incremented by +1000 to disambiguate from the other series.

from dcm2niix.

John-Chin avatar John-Chin commented on September 22, 2024

Thank you for your quick response.

Do you know how I could access the ICE_DIMS tag manually?
I've tried the below

 dataset = pydicom.dcmread(filepath)
 print(dataset[0x0021,0x1106])

and have gotten the error:

Traceback (most recent call last):
  File "dicom_loop.py", line 66, in <module>
    print_dicom_metadata(directory)
  File "dicom_loop.py", line 43, in print_dicom_metadata
    print(dataset[0x0021,0x1106])
  File "/home/lsanlab/.local/lib/python3.7/site-packages/pydicom/dataset.py", line 852, in __getitem__
    data_elem = self._dict[tag]
KeyError: (0021, 1106)

So it seems like my dicom files do not have this 0021,1106 tag (as described in the link you shared). Although this might be because our manufacturer model is 'MAGNETOM Prisma Fit' so I am probably using V-series dicoms (not X-series)?..

I am a bit new to sorting out dicom file types, so thank you for your help. Also, if you have any other ideas on how to manually exclude SBRef dicom files from a dataset, please pitch in. Right now my idea is just to loop through all the dicom files in the dataset, and remove files that match a certain "SBRef-identifying" criteria. (The only trouble here is finding the right criteria..)

from dcm2niix.

neurolabusc avatar neurolabusc commented on September 22, 2024

The Prisma can run either V-generation (e.g. VE11) or XA (XA30). I would reach out to the Siemens Research Collaboration Manager affiliated with your center to gain insight. You can convert the main DICOM header to a text file with gdcmdump:

 gdcmdump img.dcm > hdr.txt

For V-generation, the proprietary CSA header includes a lot of details:

 gdcmdump --csa img.dcm > hdr.txt

from dcm2niix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.