An open API service indexing awesome lists of open source software.

https://github.com/edap/pardi

A rust command line utility to parse DICOM files
https://github.com/edap/pardi

Last synced: about 1 year ago
JSON representation

A rust command line utility to parse DICOM files

Awesome Lists containing this project

README

          

# Pardi

A command line tool to parse DICOM files. It extracts Patient ID, Patient Name and file name.

## Build

To build the cli tool, move into the pardi folder and run `cargo build --release`. This command generates an optimized build in the `target/release` folder

To build the tool with [rayon](https://docs.rs/rayon/latest/rayon/) enabled, run `cargo build --release --features rayon`

## Usage

After the build process, in `target/release` you can find the `pardi` binary. Run it with `./pardi`. See the next sections for the available options.

## Options

- `--path` = Specify the path where to look for DICOM files. By default it tries to scan the current directory

Example: `./target/release/pardi --path /home/user/data`

- `--format` = The format of the output, json and csv are available. Default json

Example: `./target/release/pardi --path data --format csv`

- `--debug` = Print error messages for unprocessable files. Default false.

Example: `./target/release/pardi --path data --debug`

- `--output` = Save the catalog to a file. If no output option is speficied, it prints the catalogue on screen.

Example: `./target/release/pardi --path data --format json --output catalog.json`