Small utilities to aid working with the SOF dataset
Project description
SOF-Utils
Utility scripts to aid working with the SOF dataset.
Command Line Tools
sof-dicom-meta
usage: sof-dicom-meta [-h] [-r] [-f FILE] [-p] [-s] dicom_path
Extract dicom meta info in csv format.
positional arguments:
dicom_path Path to search for dicom files in.
optional arguments:
-h, --help show this help message and exit
-r Inlcude subdirectories
-f FILE, --file FILE Write output to file instead of stdout.
-p, --progress Shows a progressbar, only available in combination
with -f.
-s, --statistics Print minimum and maximum values for each column.
sof-dicom-corrupted
usage: sof-dicom-corrupted [-h] [-r] [-f FILE] [-p] [-d] [-s] dicom_path
Find corrupted dicom files.
positional arguments:
dicom_path Path to search for dicom files in.
optional arguments:
-h, --help show this help message and exit
-r Inlcude subdirectories
-f FILE, --file FILE Write output to file instead of stdout.
-p, --progress Shows a progressbar, only available in combination
with -f.
-s, --summary Print summary.
sof-export-images
usage: sof-export-images [-h] [-V] [--data_dir DATA_DIR]
[--configuration CONFIGURATION] [--format {png,jpeg}]
[--jpeg] [--width WIDTH] [--height HEIGHT]
target_path
Exports the SOF_hip dataset as png images
positional arguments:
target_path Path to place the images in.
optional arguments:
-h, --help show this help message and exit
-V, --version Print the version string
--data_dir DATA_DIR, -d DATA_DIR
Path to the TFDS dataset.
--configuration CONFIGURATION, -c CONFIGURATION
Dataset configuration.
--format {png,jpeg}, -t {png,jpeg}
Output image format, default to png
--jpeg Export JPEGs instead of PNGs.
--width WIDTH, -w WIDTH
Target width of the exported images
--height HEIGHT, -g HEIGHT
Target height of the exported images
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 Distribution
sof_utils-0.0.7.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for sof_utils-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9289a827416c68cf3940c8dd2633ecbfbae19a493d86a5edf1bc05f90e3265aa |
|
MD5 | 6890d233ccbd03dca5ce6eea34052e50 |
|
BLAKE2b-256 | 4f02a74bbc1a759a55be94eff5940090998d159ad18b02f9d590d5634d812fc6 |