Utilities for unpacking Clarius ultrasound data samples and creating B-mode images.
- Install Python dependencies:
pip install -r requirements.txtRun both scripts in order:
python 0_unpack_samples.pyThis script automatically processes all sample folders found in data/samples/. Simply place any number of sample folders (each containing .tar files) in the data/samples/ directory, and the script will extract all tar archives from every sample folder.
python 1_create_bmode_images.pyThis script automatically processes all extracted folders (*_extracted) found across all sample folders. It generates B-mode images from the extracted RF data and saves them in bmode_images/ folders within each extracted directory.
Important: Both scripts automatically handle an unlimited number of samples. Just add your sample folders to data/samples/ and run the scripts - they will process everything automatically.
- Run
0_unpack_samples.pyfirst, then1_create_bmode_images.py - By default, B-mode images are created for the first frame only
- Use
--all-framesto process all frames:python 1_create_bmode_images.py --all-frames