From 1a2f9c13ef9d647bcbc9669cd976f5b38d8fb8b0 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 23 Sep 2024 07:52:51 +0200 Subject: [PATCH] fix typos found by codespell --- .codespellrc | 2 +- FILENAMING.md | 2 +- console/main_console.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.codespellrc b/.codespellrc index a9022c82..c3d128be 100644 --- a/.codespellrc +++ b/.codespellrc @@ -8,4 +8,4 @@ skip = .git,*.json,dcm_qa* # // the isotropic trace or MD can be calculated) often come as # /*if (!dcmList[indx0].isDerived) //no need to warn if images are derived Trace/ND pair # ser - used in printMessage(" acq %d img %d ser %ld ... -ignore-words-list = te,clen,tage,nd,ser +ignore-words-list = te,clen,tage,nd,ser,spoff diff --git a/FILENAMING.md b/FILENAMING.md index 436114a1..5f46d0c5 100644 --- a/FILENAMING.md +++ b/FILENAMING.md @@ -63,7 +63,7 @@ DICOM images can have up to [16](https://www.medicalconnections.co.uk/kb/Number- ## File Name Conflicts -dcm2niix will attempt to write your image using the naming scheme you specify with the '-f' parameter. However, if an image already exists with the specified output name, dcm2niix will append a letter (e.g. 'a') to the end of a file name to avoid overwriting existing images. Consider a situation where dcm2niix is run with '-f %t'. This will name images based on the study time. If a single study has multiple series (for example, a T1 sequence and a fMRI scan, the reulting file names will conflict with each other. In order to avoid overwriting images, dcm2niix will resort to adding the post fix 'a', 'b', etc. There are a few solutions to avoiding these situations. You may want to consider using both of these: +dcm2niix will attempt to write your image using the naming scheme you specify with the '-f' parameter. However, if an image already exists with the specified output name, dcm2niix will append a letter (e.g. 'a') to the end of a file name to avoid overwriting existing images. Consider a situation where dcm2niix is run with '-f %t'. This will name images based on the study time. If a single study has multiple series (for example, a T1 sequence and a fMRI scan, the resulting file names will conflict with each other. In order to avoid overwriting images, dcm2niix will resort to adding the post fix 'a', 'b', etc. There are a few solutions to avoiding these situations. You may want to consider using both of these: - Make sure you specify a naming scheme that can discriminate between your images. For example '-f %t' will not disambiguate different series acquired in the same session. However, '-f %t_%s' will discriminate between series. - Localizer (scout) images are the first scans acquired for any scanning session, and are used to plan the location for subsequent images. Localizers are not used in subsequent analyses (due to resolution, artefacts, etc). Localizers are often acquired with three orthogonal image planes (sagittal, coronal and axial). The NIfTI format requires that all slices in a volume are co-planar, so these localizers will generate naming conflicts. The solution is to use '-i y' which will ignore (not convert) localizers (it will also ignore derived images and 2D slices). This command helps exclude images that are not required for subsequent analyses. - Be aware that if you run dcm2niix twice with the same parameters on the same data, you will encounter file naming conflicts. diff --git a/console/main_console.cpp b/console/main_console.cpp index 8865955b..e87c1481 100644 --- a/console/main_console.cpp +++ b/console/main_console.cpp @@ -117,7 +117,7 @@ void showHelp(const char *argv[], struct TDCMopts opts) { //#define kNAME_CONFLICT_OVERWRITE 1 //1 = overwrite existing file with same name //#define kNAME_CONFLICT_ADD_SUFFIX 2 //default 2 = write with new suffix as a new file printf(" -w : write behavior for name conflicts (0,1,2, default 2: 0=skip duplicates, 1=overwrite, 2=add suffix)\n"); - printf(" -x : crop 3D acquisitions (y/n/i, default n, use 'i'gnore to neither crop nor rotate 3D acquistions)\n"); + printf(" -x : crop 3D acquisitions (y/n/i, default n, use 'i'gnore to neither crop nor rotate 3D acquisitions)\n"); char gzCh = 'n'; if (opts.isGz) gzCh = 'y';