Mark Pinsk
unread,Jan 12, 2023, 2:28:38 PM1/12/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DSI Studio
Hi Frank
I am trying to export to nifti and have the orientation, fov, etc match the original nifti input that I used to create the SRC. I'm not having any luck, and wonder how to do this. My exported nifti does not match, and a quick look using 3dinfo shows some differences.
My commands are below, and I've uploaded a sample dataset (pinsk-sample-dataset.zip). Thank you! Mark
# Convert nii to src
dsi_studio \
--action=src \
--source=data.nii.gz \
--bval=bvals \
--bvec=bvecs \
--up_sampling=0 \
--output=ses-01.src.gz
# Convert src to fib
dsi_studio \
--action=rec \
--source=ses-01.src.gz \
--method=4 \
--param0=1.25 \
--check_btable=1 \
--align_acpc=0 \
--other_output=all \
--output=ses-01.gqi.fib.gz
# Export QA nii
dsi_studio \
--action=exp \
--source=ses-01.gqi.fib.gz \
--export=qa
3dinfo data.nii.gz
Geometry String: "MATRIX(1.895302,0.111274,-0.073813,-125.4917,0.113576,-1.8957,0.058502,125.9683,0.07022,0.062769,1.897664,-81.11008):130,130,80"
Data Axes Tilt: Oblique (4.030 deg. from plumb)
Data Axes Approximate Orientation:
first (x) = Right-to-Left
second (y) = Posterior-to-Anterior
third (z) = Inferior-to-Superior [-orient RPI]
R-to-L extent: -125.492 [R] -to- 119.608 [L] -step- 1.900 mm [130 voxels]
A-to-P extent: -119.132 [A] -to- 125.968 [P] -step- 1.900 mm [130 voxels]
I-to-S extent: -81.110 [I] -to- 68.990 [S] -step- 1.900 mm [ 80 voxels]
3dinfo ses-01.gqi.fib.gz.qa.nii.gz
Geometry String: "MATRIX(1.9,0,0,-245.1,0,1.9,0,-245.1,0,0,1.9,0):130,130,80"
Data Axes Tilt: Plumb
Data Axes Orientation:
first (x) = Right-to-Left
second (y) = Anterior-to-Posterior
third (z) = Inferior-to-Superior [-orient RAI]
R-to-L extent: -245.100 [R] -to- 0.000 -step- 1.900 mm [130 voxels]
A-to-P extent: -245.100 [A] -to- 0.000 -step- 1.900 mm [130 voxels]
I-to-S extent: 0.000 -to- 150.100 [S] -step- 1.900 mm [ 80 voxels]