DICOM splitter based on unique tags, or localizers
Project description
DICOM Splitter
This gear is meant to split DICOM archives into two or more archives. The main use cases for this gear are if,
- There are one or more localizers (scouts, etc.) within the archive
- There are multiple Series in one archive.
- Some field varies across the archive and you have reason to the archive based on that field.
The gear is set to do the first two above by default, i.e. it will extract a localizer(s) from the archive, and it will extract each unique SeriesInstanceUID into its own archive.
Usage
Inputs
- dicom : Dicom archive input
Configuration
- extract_localizer (boolean, default True): Whether or not to extract localizer from archive.
- group_by (string, default "SeriesInstanceUID"): Comma separated list of dicom tags to split the archvie on.
- tag (string, default "splitter"): The tag to be added on input file upon run completion.
- debug (boolean, default False): Include debug output.
- delete_input (boolean, default True): Delete input if DICOM is successfully split.
Outputs
The gear will output nothing if no splitting action was taken. Otherwise it will output a variable number of archives depending on the input and configuration named with the following pattern:
series-<SeriesNumber>_<Modality>_<SeriesDescription>[_localizer]
, where
SeriesNumber
is the value of theSeriesNumber
tag across the archive. By default the largest sized archive (by number of slices) will retain the originalSeriesNumber
and additional archives will be incremented by1000 + i
, wherei
is the index of the archive in a list of total archives.SeriesDescription
is the value of theSeriesDescription
tag across the archiveModality
is the value of theModality
tag across the archive- If the series is a localizer,
_localizer
will be appended.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for fw_gear_splitter-1.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 169737907ed5cd41fd0ef0e12194a39371894c56961300d33bd62b810133d498 |
|
MD5 | d158c3dc150198f69dbe3a71dca24126 |
|
BLAKE2b-256 | a4c457192b5ad729c75e07411380b51a081a4f870082f6808d3af2b31f48b91d |