logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dcsort - ACR/NEMA DICOM PS3 ... DICOM PS3 - Make sorted list of images

Author

       Copyright (c) 1993-2022, David A. Clunie DBA PixelMed Publishing. All rights reserved.

Bugs

DICOM PS3                                         6 March 2014                                         DCSORT(1)

Description

dcsort reads the named dicom input files and sorts them by the specified sort key.

       The  sort  key should be a single valued numeric attribute, with the exception of ImageOrientationPatient
       and ImagePositionPatient which are handled as special cases.

       There is no output by default unless the index or verbose options are specified.

Environment

Examples


       % dcsort -index -sortby SliceLocation ./1/[0-9]*
       0    ./1/1
       1    ./1/2

Files

Name

       dcsort - ACR/NEMA DICOM PS3 ... DICOM PS3 - Make sorted list of images

Options

       The output and errors go to standard error.

       The basic input switches are described in dcintro(1). Options specific to this program are:

       -index
              Creates a first column of output that is the index in the sort  order,  starting  from  0,  and  a
              second column that is the filename.

       -show
              Show the value of the sort key after the file name with the -index option

       -interval
              Show the interval between values of the sort key, or an error if not equal

       -tolerancemm
              The  tolerance value in mm to use when comparing intervals between slices; defaults to +/- 0.01 mm
              if unspecified

       -check
              Check that all the images are from the same series.

       -checkFoR
              Check that all the images have the same Frame of Reference (UID).

       -descending
              Sort in descending, rather than the default ascending, order.

       -sortby|kattributename
              Specify attributename as the sort key.

See Also

dcintro(1)

Synopsis

dcsort  "  inputfile1  [  inputfile2 ... ]" [ -v|verbose ] [ -vv|veryverbose ] [ -vvv|veryveryverbose ] [
                 -index ] [ -show ] [ -interval ] [ -tolerancemm ] [ -check ] [ -checkFoR ] [ -descending  ]  [
                 -sortby|kattributename ]

See Also