The -n option is an advanced feature that is used by MRIcroGL
and FSLeyes to provide a user with a list of all of the DICOMs in a
folder and allow them to select just one to load. Since a folder
might have many repeats of a particular series, you need to know
how dcm2niix encodes the details as a CRC code. Therefore, to use
the -n option you run it twice, once with the value -1 to list CRCs
and their corresponding series, and subsequently with the CRC of
the series you wish to convert. To provide a concrete example with
Siemens XA60, consider the validation dataset dcm_qa_xa60 where we
only want to convert the series that used the CMRR research
sequences and with iPAT=3 and multi-band = 1. We first query the
folder to identify the CRC (which turns out to be 257128538) and
then convert just that series:
Note that when you query dcm2niix, it reports the following details for each series: CRC; filename; (image_dimensions). You can use the `-f` option to choose what details should be shown in the filename, which can help you parse what image you will convert, for example `-f %t_%s_%p` will provide the datetime_seriesNumber_protocolName.
Threaded View
Title | Author | Date |
---|---|---|
Christian Paret | Sep 4, 2025 | |
Chris Rorden | Sep 4, 2025 | |