Skip to content

Commit

Permalink
AcquisitionVoxelSize before any interpolation or resampling within re…
Browse files Browse the repository at this point in the history
…construction or image processing
  • Loading branch information
neurolabusc committed Jun 8, 2022
1 parent 8f66f1e commit f9cc431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console/nii_dicom_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1653,7 +1653,7 @@ tse3d: T2*/
fprintf(fp, "\t\"ArterialSpinLabelingType\": \"PASL\",\n");
//AcquisitionVoxelSize uses slice thickness (without gap)
// https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/01-magnetic-resonance-imaging-data.html#common-metadata-fields-applicable-to-both-pcasl-and-pasl
if ((isPASL) || (isPCASL))
if (((isPASL) || (isPCASL)) && (csaAscii.interp <= 0))
fprintf(fp, "\t\"AcquisitionVoxelSize\": [\n\t\t%g,\n\t\t%g,\n\t\t%g\t],\n", d.xyzMM[1], d.xyzMM[2], d.zThick);
//general properties
if ((csaAscii.partialFourier > 0) && ((d.modality == kMODALITY_MR))) { //check MR, e.g. do not report for Siemens PET
Expand Down

0 comments on commit f9cc431

Please sign in to comment.