Comments (2)
This question is out of scope for dcm2niix. dcm2niix uses nifti_clib for these transforms, so that would be the appropriate place for questions. In particular, see nifti_quatern_to_mat44
In brief:
- The NIfTI header includes two independent spatial transforms: the Matrix-based SForm (12 degrees of freedom: shear, zoom, rotation, translation each in three dimensions) and the Quaternion-based QForm (9 DoG: zoom, rotation, translation in 3D). In general, both initially map the image to native scanner space, and a co-registration can update one or both to warp the image to standard space. You can use the sform_code/q form_code to determine the spatial reference (e.g. native vs standard) of each, but most tools give precedence to the SForm.
- Your R-matrix is only 3x3, but you need a 4x4 matrix to include the translations. You must include the qoffset_x/y/z.
- You can easily convert a matrix to a quaternion. However, this transform will be lossy if your transform includes a shear (CT gantry tilt).
- Note you can losslessly convert a quaternion to a 4x4 matrix.
- Note that for 3D acquisitions (but not 2D EPI sequences), dcm2niix will losslessly reorient sagittal and coronal slices to be axial slices, with the spatial transforms rotated appropriately.
from dcm2niix.
Sorry for use the wrong site to post my doubt but thanks for your tips and explanations, they help me a lot.
from dcm2niix.
Related Issues (20)
- What is `offset` and `Valid 0` HOT 7
- Suppress ROI1, ROI2, etc. in conversion HOT 1
- Add Return Codes other than 0 HOT 4
- git clone failure? HOT 2
- Error in bvec extraction when UIH diffusion data is converted to nifti HOT 3
- Problems with b2500 and b700 dwi data HOT 5
- GE slice timing error
- Incorrect 3D reconstruction for enhanced multi-frame MRI HOT 4
- Feature request: Instead of providing a source directory, would it be possible to provide dcm2niix a list of files to be processed? HOT 1
- Store DICOM field (0018,9093) NumberOfKSpaceTrajectories ? HOT 2
- XA30 myomaps BEATs triggers conversion warnings, unusable nifti HOT 6
- Different study/data time, -m option not working HOT 1
- XA-series missing minor version tracking in sidecar HOT 8
- Incorrect value of PhaseEncodingDirection on Siemens 3D T2w SPACE scans HOT 4
- Addition of MAGNITUDE to ImageType of Siemens data HOT 4
- Error in Mediso Dynamic PET Conversion HOT 1
- segmentation fault on s390x systems (big endian) HOT 2
- Add github pages demo for dcm2niix WASM with Niivue
- SIEMENS XA50 DIFFUSION DATA HOT 4
- PR813 issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dcm2niix.