Giter VIP home page Giter VIP logo

Comments (3)

neurolabusc avatar neurolabusc commented on September 26, 2024

I do not have access to a dataset to replicate nor do I use Slicer3D, so this is my best guess. I think this just reflects that NIfTI and DICOM have different spatial coordinates. Specifically, NIfTI uses RAS while DICOM uses LPS. To test my hypothesis, drag and drop your NIfTI file on the NiiVue live demo and ensure the (L)eft, (S)uperior and (P)osterior text is correct.

from dcm2niix.

Ernest861 avatar Ernest861 commented on September 26, 2024

I found that turning the results directly with the parameters didn't turn out in the right direction, and I'd like to tweak them in bulk, but I don't know how to write the parameters to batch.

the args used to convert the dicom to nii
bidscoin

the converted nii with error orientation
sub09anat

the right orientation by the import > tools > rotation
reoratation

from dcm2niix.

neurolabusc avatar neurolabusc commented on September 26, 2024

Hello, I am not sure that the dcm2niix issue board is the correct place for this as you are using bidscoin (a dcm2niix wrapper) and MRIcroGL. However, I will try my best. Many quadruped scans have errors in terms of defining the patient position, and different templates use different rotations. This may require you to rotate the NIfTI spatial transformation to match your desired orientation. When you run MRIcroGL from the command line and choose to re-orient an image, you will notice it will provide the permutation required to the columns, rows and slices to get them to match the NIfTI identity matrix:

Reorient Dimensions -1 3 -2

You could always use this to write a nibabel batch script to adjust the NIfTI affine for a huge number of images that required the same rotation. I am not a nibabel expert, but I think ChatGPT can give you some good hints on how to achieve this.

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.