Skip to content

Commit

Permalink
Add AcquisitionVoxelSize tag for Siemens ASL (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Jun 7, 2022
1 parent 0191d51 commit 8f66f1e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions console/nii_dicom_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1651,6 +1651,10 @@ tse3d: T2*/
fprintf(fp, "\t\"ArterialSpinLabelingType\": \"PCASL\",\n");
if (isPASL)
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))
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
//https://github.com/ismrmrd/siemens_to_ismrmrd/blob/master/parameter_maps/IsmrmrdParameterMap_Siemens_EPI_FLASHREF.xsl
Expand Down

0 comments on commit 8f66f1e

Please sign in to comment.