From f9cc43168eef64e69c69c11eb5b896f7617df67b Mon Sep 17 00:00:00 2001 From: neurolabusc Date: Wed, 8 Jun 2022 07:22:18 -0400 Subject: [PATCH] AcquisitionVoxelSize before any interpolation or resampling within reconstruction or image processing --- console/nii_dicom_batch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/nii_dicom_batch.cpp b/console/nii_dicom_batch.cpp index adfb642f..58486105 100644 --- a/console/nii_dicom_batch.cpp +++ b/console/nii_dicom_batch.cpp @@ -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