Tidy the pipeline YAMLs
#5
by tristan-deep - opened
This view is limited to 50 files because it contains too many changes. See the raw diff here.
- .gitattributes +2 -0
- README.md +2 -0
- colorado-boulder/README.md +174 -174
- colorado-boulder/pipeline.yaml +44 -45
- concordia/README.md +10 -12
- concordia/pipeline.yaml +1 -3
- concordia/wikimedia_commons_metadata.csv +0 -0
- dartmouth-uct/pipeline.yaml +0 -1
- kaist-snubh-barreleye/pipeline.yaml +1 -3
- oslo/A_cardiac/README.md +124 -124
- oslo/B_carotid/README.md +126 -126
- oslo/C_verasonics_phantom/README.md +137 -137
- oslo/D_alpinion_phantom/README.md +126 -126
- oslo/E_simulation/README.md +134 -134
- oslo/parameters.yaml +217 -0
- oslo/pipeline.yaml +0 -1
- oslo/pipeline_iq.yaml +0 -1
- oslo/pipeline_refocus.yaml +0 -1
- oslo/pipeline_refocus_sector.yaml +0 -1
- oslo/pipeline_scanline.yaml +0 -1
- oslo/pipeline_sector.yaml +0 -1
- politorino/README.md +6 -7
- politorino/pipeline.yaml +1 -3
- resolvestroke/clinical/SP02-Left-2/pipeline.yaml +0 -1
- resolvestroke/phantom_flow/pipeline.yaml +0 -1
- resolvestroke/phantom_mp/pipeline.yaml +0 -1
- resolvestroke/saddle/pipeline.yaml +0 -1
- siemens-healthineers/pipeline.yaml +1 -3
- stanford-murine/pipeline_hadamard.yaml +0 -1
- stanford-murine/pipeline_multifocal.yaml +0 -1
- stanford-murine/pipeline_synthetic_aperture.yaml +0 -1
- technion/bladder/pipeline.yaml +0 -1
- technion/cardiac/pipeline.yaml +0 -1
- technion/phantom/pipeline.yaml +0 -1
- tel-aviv/phantom/pipeline.yaml +0 -1
- tue-aaa/pipeline.yaml +1 -3
- tue-cardiac/pipelines/pipeline.yaml +10 -3
- tue-cardiac/pipelines/pipeline_hadamard.yaml +15 -4
- tue-cardiac/pipelines/pipeline_harmonic.yaml +10 -3
- tue-cardiac/pipelines/pipeline_random.yaml +15 -4
- tue-cardiac/reconstruct.py +0 -104
- tue-carotid/README.md +14 -0
- tue-carotid/assets/5_long_bifur_R_0000.gif +3 -0
- tue-carotid/pipeline.yaml +0 -1
- tumunich/pipeline.yaml +2 -3
- twente-cavitation/README.md +117 -117
- twente-cavitation/pipeline.yaml +22 -20
- twente-microbubblesim/README.md +3 -3
- twente-microbubblesim/migrate_custom_names.py +0 -239
- twente-microbubblesim/utils.py +0 -247
.gitattributes
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
*.avro filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 1 |
+
* text=auto eol=lf
|
| 2 |
+
|
| 3 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 4 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 5 |
*.avro filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -12,6 +12,8 @@ This dataset is a collection of RF samples and metadata in the [`zea` file forma
|
|
| 12 |
|
| 13 |
This dataset is ready for commercial or non-commercial uses.
|
| 14 |
|
|
|
|
|
|
|
| 15 |
## Dataset Owner
|
| 16 |
|
| 17 |
NVIDIA Corporation
|
|
|
|
| 12 |
|
| 13 |
This dataset is ready for commercial or non-commercial uses.
|
| 14 |
|
| 15 |
+
Each subdirectory here holds a data card and a processing pipeline. The matching reconstruction scripts, one runnable reference reconstruction per subset, are in the companion repository, [github.com/open-h/OpenH-RF](https://github.com/open-h/OpenH-RF).
|
| 16 |
+
|
| 17 |
## Dataset Owner
|
| 18 |
|
| 19 |
NVIDIA Corporation
|
colorado-boulder/README.md
CHANGED
|
@@ -1,174 +1,174 @@
|
|
| 1 |
-
---
|
| 2 |
-
pretty_name: "OpenH-RF — Tracked Swept Synthetic Aperture 3D Phantom Dataset"
|
| 3 |
-
license: cc-by-4.0
|
| 4 |
-
task_categories:
|
| 5 |
-
- generalized-reconstruction
|
| 6 |
-
tags:
|
| 7 |
-
- ultrasound
|
| 8 |
-
- rf
|
| 9 |
-
- openh-rf
|
| 10 |
-
- 3d
|
| 11 |
-
language:
|
| 12 |
-
- en
|
| 13 |
-
size_categories:
|
| 14 |
-
- n<1K
|
| 15 |
-
---
|
| 16 |
-
|
| 17 |
-
# Tracked Swept Synthetic Aperture 3D Phantom Ultrasound Dataset
|
| 18 |
-
|
| 19 |
-
## Dataset Description
|
| 20 |
-
|
| 21 |
-
This dataset contains tracked swept synthetic aperture (SSA) ultrasound acquisitions of a 3D ultrasound imaging phantom. The data were acquired using a Verasonics Vantage research ultrasound system with a P4-2 phased array transducer.
|
| 22 |
-
|
| 23 |
-
The dataset includes raw RF channel data, acquisition parameters, probe geometry, transmit information, and frame-wise tracked probe pose metadata. Its purpose is to provide a reproducible example of motion-compensated SSA reconstruction from raw channel data using the zea/OpenH-RF data format.
|
| 24 |
-
|
| 25 |
-
This dataset contains phantom data only. It does not contain human subject data, animal data, or protected health information (PHI).
|
| 26 |
-
|
| 27 |
-
## Dataset Contributor(s)
|
| 28 |
-
|
| 29 |
-
**Contributing organization:** University of Colorado Boulder, Bottenus Lab
|
| 30 |
-
|
| 31 |
-
**Contributors:**
|
| 32 |
-
|
| 33 |
-
- Anet Sanchez
|
| 34 |
-
- Nick Bottenus
|
| 35 |
-
|
| 36 |
-
## Dataset Creation Date
|
| 37 |
-
|
| 38 |
-
06/24/2025
|
| 39 |
-
|
| 40 |
-
## License / Terms of Use
|
| 41 |
-
|
| 42 |
-
This dataset is released under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
|
| 43 |
-
|
| 44 |
-
The contributed data consist exclusively of phantom ultrasound acquisitions and are cleared for release under CC BY 4.0. Patient consent, clinical data-use agreements, and PHI de-identification are not applicable because the dataset does not contain human subject data.
|
| 45 |
-
|
| 46 |
-
## Intended Usage
|
| 47 |
-
|
| 48 |
-
This dataset is intended for research on generalized ultrasound reconstruction, with a particular focus on tracked swept synthetic aperture imaging, motion-compensated beamforming, coherent compounding, and ultrasound image-quality evaluation.
|
| 49 |
-
|
| 50 |
-
For SSA reconstruction, each raw RF frame is beamformed using its corresponding tracked transducer pose. The resulting beamformed IQ frames are placed on a common reconstruction grid and coherently summed to synthesize a larger effective aperture. Because the reconstruction relies on coherent compounding, summation is performed before envelope detection, normalization, and log compression.
|
| 51 |
-
|
| 52 |
-
## Dataset Characterization
|
| 53 |
-
|
| 54 |
-
- **Data Collection Method:** Phantom ultrasound acquisition
|
| 55 |
-
- **Labeling Method:** N/A; no manual labels or segmentation masks are provided
|
| 56 |
-
- **Acquisition System:** Verasonics Vantage research ultrasound scanner with a Verasonics P4-2 phased array transducer
|
| 57 |
-
|
| 58 |
-
### Acquisition Details
|
| 59 |
-
|
| 60 |
-
The transducer was manually swept over the phantom field of view while diverging-wave transmissions were acquired at 400 Hz. All 64 array elements were used on receive.
|
| 61 |
-
|
| 62 |
-
Diverging waves were generated using a negative virtual source with the 20 central array elements active on transmit.
|
| 63 |
-
|
| 64 |
-
The transducer was optically tracked using an NDI Polaris Vega® XT optical tracking system manufactured by Northern Digital Inc., Ontario, Canada.
|
| 65 |
-
|
| 66 |
-
### Probe and Geometry
|
| 67 |
-
|
| 68 |
-
The acquisition used a Verasonics P4-2 phased array transducer with 64 elements. The center frequency stored in the acquisition and used for reconstruction is 2.5 MHz.
|
| 69 |
-
|
| 70 |
-
The probe geometry, transmit origins, transmit delays, transmit apodization, and other acquisition parameters are stored in the zea/OpenH-RF file. Frame-wise probe translations and rotations are stored using the native `metadata/probe_pose` structure.
|
| 71 |
-
|
| 72 |
-
## Dataset Format
|
| 73 |
-
|
| 74 |
-
The dataset is distributed in the zea/OpenH-RF HDF5 format.
|
| 75 |
-
|
| 76 |
-
Each file includes:
|
| 77 |
-
|
| 78 |
-
- Raw RF channel data
|
| 79 |
-
- Sampling and center frequencies
|
| 80 |
-
- Transmit delays and apodization
|
| 81 |
-
- Transmit origins
|
| 82 |
-
- Probe geometry
|
| 83 |
-
- Sound-speed information
|
| 84 |
-
- Frame-wise tracked probe translations
|
| 85 |
-
- Frame-wise tracked probe rotations
|
| 86 |
-
|
| 87 |
-
The stored RF channel data have not been beamformed, envelope detected, normalized, or log compressed. The accompanying reconstruction pipeline performs these processing steps.
|
| 88 |
-
|
| 89 |
-
## Dataset Quantification
|
| 90 |
-
|
| 91 |
-
**Current OpenH-RF release:** 62 HDF5 files; 16.04 GB (16,037,117,952 bytes) stored; root `zea_version` **0.1.6**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
|
| 92 |
-
|
| 93 |
-
- **Number of phantom objects:** 1
|
| 94 |
-
- **Number of acquisitions:** 10
|
| 95 |
-
- **Number of RF frames per acquisition:** 1200
|
| 96 |
-
- **Number of transmit events per frame:** 1
|
| 97 |
-
- **Number of receive elements:** 64
|
| 98 |
-
- **Number of active transmit elements:** 20
|
| 99 |
-
|
| 100 |
-
### Per-File Feature Summary
|
| 101 |
-
|
| 102 |
-
| Feature | Shape | Data type | Units | Description |
|
| 103 |
-
|---|---:|---|---|---|
|
| 104 |
-
| Raw RF data | `n_frames × n_tx × n_ax × n_elements × n_channels` | `float32` | acquisition units | Raw RF channel measurements |
|
| 105 |
-
| Probe translation | `n_frames × 3` | `float32` | m | Frame-wise tracked probe position |
|
| 106 |
-
| Probe rotation | `n_frames × 4` | `float32` | unit quaternion | Frame-wise tracked probe orientation in `xyzw` order |
|
| 107 |
-
| Probe geometry | `64 × 3` | `float32` | m | Array-element coordinates |
|
| 108 |
-
| Transmit origins | `n_tx × 3` | `float32` | m | Diverging-wave virtual-source coordinates |
|
| 109 |
-
| Transmit delays | `n_tx × 64` | `float32` | s | Per-element transmit delays |
|
| 110 |
-
| Transmit apodization | `n_tx × 64` | `float32` | unitless | Per-element transmit activation and weighting |
|
| 111 |
-
|
| 112 |
-
## Subject Metadata
|
| 113 |
-
|
| 114 |
-
### Metadata Schema Migration
|
| 115 |
-
|
| 116 |
-
The zea 0.1.6 migration uses these approved metadata locations:
|
| 117 |
-
|
| 118 |
-
| Legacy location | Canonical location |
|
| 119 |
-
|---|---|
|
| 120 |
-
| Dataset `metadata/subject_id` | Dataset `metadata/subject/id` |
|
| 121 |
-
| Dataset `metadata/subject_type` | Dataset `metadata/subject/type` |
|
| 122 |
-
| Dataset `metadata/us_machine` | Root HDF5 attribute `us_machine` |
|
| 123 |
-
|
| 124 |
-
Read the machine name with `f.attrs["us_machine"]`, not `f["us_machine"]`.
|
| 125 |
-
Subject values and their existing attributes are preserved. The machine
|
| 126 |
-
string is preserved; migration stops for review if its legacy dataset has
|
| 127 |
-
attributes that cannot be represented without loss. No numerical arrays are
|
| 128 |
-
rescaled or otherwise changed by these relocations.
|
| 129 |
-
|
| 130 |
-
The three-field pilot passed full array and metadata parity checks with the
|
| 131 |
-
approved description changes and `transmit_only=False` default. Full-release
|
| 132 |
-
migration is still pending. Replacement files are uploaded only after
|
| 133 |
-
per-file validation; readers supporting both revisions should check the
|
| 134 |
-
canonical locations first, then the legacy locations.
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
This dataset contains one 3D ultrasound imaging phantom.
|
| 138 |
-
|
| 139 |
-
- **Subject type:** 3D phantom
|
| 140 |
-
- **Anatomical region:** Not applicable
|
| 141 |
-
- **Human participants:** None
|
| 142 |
-
- **Animal subjects:** None
|
| 143 |
-
- **Protected health information:** None
|
| 144 |
-
- **Scanner:** Verasonics Vantage
|
| 145 |
-
- **Probe:** Verasonics P4-2 phased array
|
| 146 |
-
|
| 147 |
-
## Data Validation
|
| 148 |
-
|
| 149 |
-
The submission includes a `zea.Pipeline` that reconstructs a representative tracked SSA B-mode image from the raw RF channel data.
|
| 150 |
-
|
| 151 |
-
The pipeline performs:
|
| 152 |
-
|
| 153 |
-
1. Frame-wise demodulation
|
| 154 |
-
2. Application of the tracked probe pose
|
| 155 |
-
3. Delay-and-sum beamforming onto a common reconstruction grid
|
| 156 |
-
4. Coherent summation of the beamformed IQ frames
|
| 157 |
-
5. Envelope detection
|
| 158 |
-
6. Normalization
|
| 159 |
-
7. Log compression
|
| 160 |
-
|
| 161 |
-
The reconstruction is defined in `pipeline.yaml` and executed using `reconstruct.py`. A representative reconstructed B-mode image is included with the dataset.
|
| 162 |
-
|
| 163 |
-
## Known Issues
|
| 164 |
-
|
| 165 |
-
- Optical tracking measurements may contain small position and orientation uncertainties.
|
| 166 |
-
- Reconstruction quality depends on tracking calibration accuracy and coherent alignment between frames.
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
## Ethical Considerations
|
| 170 |
-
|
| 171 |
-
This dataset contains phantom ultrasound data only. It does not contain human participants, animal subjects, personal identifiers, clinical records, or protected health information.
|
| 172 |
-
|
| 173 |
-
Human-subject consent and institutional review board approval are therefore not applicable.
|
| 174 |
-
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: "OpenH-RF — Tracked Swept Synthetic Aperture 3D Phantom Dataset"
|
| 3 |
+
license: cc-by-4.0
|
| 4 |
+
task_categories:
|
| 5 |
+
- generalized-reconstruction
|
| 6 |
+
tags:
|
| 7 |
+
- ultrasound
|
| 8 |
+
- rf
|
| 9 |
+
- openh-rf
|
| 10 |
+
- 3d
|
| 11 |
+
language:
|
| 12 |
+
- en
|
| 13 |
+
size_categories:
|
| 14 |
+
- n<1K
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Tracked Swept Synthetic Aperture 3D Phantom Ultrasound Dataset
|
| 18 |
+
|
| 19 |
+
## Dataset Description
|
| 20 |
+
|
| 21 |
+
This dataset contains tracked swept synthetic aperture (SSA) ultrasound acquisitions of a 3D ultrasound imaging phantom. The data were acquired using a Verasonics Vantage research ultrasound system with a P4-2 phased array transducer.
|
| 22 |
+
|
| 23 |
+
The dataset includes raw RF channel data, acquisition parameters, probe geometry, transmit information, and frame-wise tracked probe pose metadata. Its purpose is to provide a reproducible example of motion-compensated SSA reconstruction from raw channel data using the zea/OpenH-RF data format.
|
| 24 |
+
|
| 25 |
+
This dataset contains phantom data only. It does not contain human subject data, animal data, or protected health information (PHI).
|
| 26 |
+
|
| 27 |
+
## Dataset Contributor(s)
|
| 28 |
+
|
| 29 |
+
**Contributing organization:** University of Colorado Boulder, Bottenus Lab
|
| 30 |
+
|
| 31 |
+
**Contributors:**
|
| 32 |
+
|
| 33 |
+
- Anet Sanchez
|
| 34 |
+
- Nick Bottenus
|
| 35 |
+
|
| 36 |
+
## Dataset Creation Date
|
| 37 |
+
|
| 38 |
+
06/24/2025
|
| 39 |
+
|
| 40 |
+
## License / Terms of Use
|
| 41 |
+
|
| 42 |
+
This dataset is released under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
|
| 43 |
+
|
| 44 |
+
The contributed data consist exclusively of phantom ultrasound acquisitions and are cleared for release under CC BY 4.0. Patient consent, clinical data-use agreements, and PHI de-identification are not applicable because the dataset does not contain human subject data.
|
| 45 |
+
|
| 46 |
+
## Intended Usage
|
| 47 |
+
|
| 48 |
+
This dataset is intended for research on generalized ultrasound reconstruction, with a particular focus on tracked swept synthetic aperture imaging, motion-compensated beamforming, coherent compounding, and ultrasound image-quality evaluation.
|
| 49 |
+
|
| 50 |
+
For SSA reconstruction, each raw RF frame is beamformed using its corresponding tracked transducer pose. The resulting beamformed IQ frames are placed on a common reconstruction grid and coherently summed to synthesize a larger effective aperture. Because the reconstruction relies on coherent compounding, summation is performed before envelope detection, normalization, and log compression.
|
| 51 |
+
|
| 52 |
+
## Dataset Characterization
|
| 53 |
+
|
| 54 |
+
- **Data Collection Method:** Phantom ultrasound acquisition
|
| 55 |
+
- **Labeling Method:** N/A; no manual labels or segmentation masks are provided
|
| 56 |
+
- **Acquisition System:** Verasonics Vantage research ultrasound scanner with a Verasonics P4-2 phased array transducer
|
| 57 |
+
|
| 58 |
+
### Acquisition Details
|
| 59 |
+
|
| 60 |
+
The transducer was manually swept over the phantom field of view while diverging-wave transmissions were acquired at 400 Hz. All 64 array elements were used on receive.
|
| 61 |
+
|
| 62 |
+
Diverging waves were generated using a negative virtual source with the 20 central array elements active on transmit.
|
| 63 |
+
|
| 64 |
+
The transducer was optically tracked using an NDI Polaris Vega® XT optical tracking system manufactured by Northern Digital Inc., Ontario, Canada.
|
| 65 |
+
|
| 66 |
+
### Probe and Geometry
|
| 67 |
+
|
| 68 |
+
The acquisition used a Verasonics P4-2 phased array transducer with 64 elements. The center frequency stored in the acquisition and used for reconstruction is 2.5 MHz.
|
| 69 |
+
|
| 70 |
+
The probe geometry, transmit origins, transmit delays, transmit apodization, and other acquisition parameters are stored in the zea/OpenH-RF file. Frame-wise probe translations and rotations are stored using the native `metadata/probe_pose` structure.
|
| 71 |
+
|
| 72 |
+
## Dataset Format
|
| 73 |
+
|
| 74 |
+
The dataset is distributed in the zea/OpenH-RF HDF5 format.
|
| 75 |
+
|
| 76 |
+
Each file includes:
|
| 77 |
+
|
| 78 |
+
- Raw RF channel data
|
| 79 |
+
- Sampling and center frequencies
|
| 80 |
+
- Transmit delays and apodization
|
| 81 |
+
- Transmit origins
|
| 82 |
+
- Probe geometry
|
| 83 |
+
- Sound-speed information
|
| 84 |
+
- Frame-wise tracked probe translations
|
| 85 |
+
- Frame-wise tracked probe rotations
|
| 86 |
+
|
| 87 |
+
The stored RF channel data have not been beamformed, envelope detected, normalized, or log compressed. The accompanying reconstruction pipeline performs these processing steps.
|
| 88 |
+
|
| 89 |
+
## Dataset Quantification
|
| 90 |
+
|
| 91 |
+
**Current OpenH-RF release:** 62 HDF5 files; 16.04 GB (16,037,117,952 bytes) stored; root `zea_version` **0.1.6**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
|
| 92 |
+
|
| 93 |
+
- **Number of phantom objects:** 1
|
| 94 |
+
- **Number of acquisitions:** 10
|
| 95 |
+
- **Number of RF frames per acquisition:** 1200
|
| 96 |
+
- **Number of transmit events per frame:** 1
|
| 97 |
+
- **Number of receive elements:** 64
|
| 98 |
+
- **Number of active transmit elements:** 20
|
| 99 |
+
|
| 100 |
+
### Per-File Feature Summary
|
| 101 |
+
|
| 102 |
+
| Feature | Shape | Data type | Units | Description |
|
| 103 |
+
|---|---:|---|---|---|
|
| 104 |
+
| Raw RF data | `n_frames × n_tx × n_ax × n_elements × n_channels` | `float32` | acquisition units | Raw RF channel measurements |
|
| 105 |
+
| Probe translation | `n_frames × 3` | `float32` | m | Frame-wise tracked probe position |
|
| 106 |
+
| Probe rotation | `n_frames × 4` | `float32` | unit quaternion | Frame-wise tracked probe orientation in `xyzw` order |
|
| 107 |
+
| Probe geometry | `64 × 3` | `float32` | m | Array-element coordinates |
|
| 108 |
+
| Transmit origins | `n_tx × 3` | `float32` | m | Diverging-wave virtual-source coordinates |
|
| 109 |
+
| Transmit delays | `n_tx × 64` | `float32` | s | Per-element transmit delays |
|
| 110 |
+
| Transmit apodization | `n_tx × 64` | `float32` | unitless | Per-element transmit activation and weighting |
|
| 111 |
+
|
| 112 |
+
## Subject Metadata
|
| 113 |
+
|
| 114 |
+
### Metadata Schema Migration
|
| 115 |
+
|
| 116 |
+
The zea 0.1.6 migration uses these approved metadata locations:
|
| 117 |
+
|
| 118 |
+
| Legacy location | Canonical location |
|
| 119 |
+
|---|---|
|
| 120 |
+
| Dataset `metadata/subject_id` | Dataset `metadata/subject/id` |
|
| 121 |
+
| Dataset `metadata/subject_type` | Dataset `metadata/subject/type` |
|
| 122 |
+
| Dataset `metadata/us_machine` | Root HDF5 attribute `us_machine` |
|
| 123 |
+
|
| 124 |
+
Read the machine name with `f.attrs["us_machine"]`, not `f["us_machine"]`.
|
| 125 |
+
Subject values and their existing attributes are preserved. The machine
|
| 126 |
+
string is preserved; migration stops for review if its legacy dataset has
|
| 127 |
+
attributes that cannot be represented without loss. No numerical arrays are
|
| 128 |
+
rescaled or otherwise changed by these relocations.
|
| 129 |
+
|
| 130 |
+
The three-field pilot passed full array and metadata parity checks with the
|
| 131 |
+
approved description changes and `transmit_only=False` default. Full-release
|
| 132 |
+
migration is still pending. Replacement files are uploaded only after
|
| 133 |
+
per-file validation; readers supporting both revisions should check the
|
| 134 |
+
canonical locations first, then the legacy locations.
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
This dataset contains one 3D ultrasound imaging phantom.
|
| 138 |
+
|
| 139 |
+
- **Subject type:** 3D phantom
|
| 140 |
+
- **Anatomical region:** Not applicable
|
| 141 |
+
- **Human participants:** None
|
| 142 |
+
- **Animal subjects:** None
|
| 143 |
+
- **Protected health information:** None
|
| 144 |
+
- **Scanner:** Verasonics Vantage
|
| 145 |
+
- **Probe:** Verasonics P4-2 phased array
|
| 146 |
+
|
| 147 |
+
## Data Validation
|
| 148 |
+
|
| 149 |
+
The submission includes a `zea.Pipeline` that reconstructs a representative tracked SSA B-mode image from the raw RF channel data.
|
| 150 |
+
|
| 151 |
+
The pipeline performs:
|
| 152 |
+
|
| 153 |
+
1. Frame-wise demodulation
|
| 154 |
+
2. Application of the tracked probe pose
|
| 155 |
+
3. Delay-and-sum beamforming onto a common reconstruction grid
|
| 156 |
+
4. Coherent summation of the beamformed IQ frames
|
| 157 |
+
5. Envelope detection
|
| 158 |
+
6. Normalization
|
| 159 |
+
7. Log compression
|
| 160 |
+
|
| 161 |
+
The reconstruction is defined in `pipeline.yaml` and executed using `reconstruct.py`. A representative reconstructed B-mode image is included with the dataset.
|
| 162 |
+
|
| 163 |
+
## Known Issues
|
| 164 |
+
|
| 165 |
+
- Optical tracking measurements may contain small position and orientation uncertainties.
|
| 166 |
+
- Reconstruction quality depends on tracking calibration accuracy and coherent alignment between frames.
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
## Ethical Considerations
|
| 170 |
+
|
| 171 |
+
This dataset contains phantom ultrasound data only. It does not contain human participants, animal subjects, personal identifiers, clinical records, or protected health information.
|
| 172 |
+
|
| 173 |
+
Human-subject consent and institutional review board approval are therefore not applicable.
|
| 174 |
+
|
colorado-boulder/pipeline.yaml
CHANGED
|
@@ -1,45 +1,44 @@
|
|
| 1 |
-
pipeline:
|
| 2 |
-
operations:
|
| 3 |
-
- name: map
|
| 4 |
-
operations:
|
| 5 |
-
- name: keras.ops.squeeze
|
| 6 |
-
params:
|
| 7 |
-
axis: 0
|
| 8 |
-
jit_compile: false
|
| 9 |
-
- name: keras.ops.cast
|
| 10 |
-
params:
|
| 11 |
-
dtype: float32
|
| 12 |
-
jit_compile: false
|
| 13 |
-
- name: demodulate
|
| 14 |
-
params:
|
| 15 |
-
jit_compile: false
|
| 16 |
-
- name: apply_probe_pose
|
| 17 |
-
params:
|
| 18 |
-
jit_compile: false
|
| 19 |
-
- name: beamform
|
| 20 |
-
params:
|
| 21 |
-
jit_options: null
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
-
|
| 31 |
-
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
with_batch_dim: false
|
|
|
|
| 1 |
+
pipeline:
|
| 2 |
+
operations:
|
| 3 |
+
- name: map
|
| 4 |
+
operations:
|
| 5 |
+
- name: keras.ops.squeeze
|
| 6 |
+
params:
|
| 7 |
+
axis: 0
|
| 8 |
+
jit_compile: false
|
| 9 |
+
- name: keras.ops.cast
|
| 10 |
+
params:
|
| 11 |
+
dtype: float32
|
| 12 |
+
jit_compile: false
|
| 13 |
+
- name: demodulate
|
| 14 |
+
params:
|
| 15 |
+
jit_compile: false
|
| 16 |
+
- name: apply_probe_pose
|
| 17 |
+
params:
|
| 18 |
+
jit_compile: false
|
| 19 |
+
- name: beamform
|
| 20 |
+
params:
|
| 21 |
+
jit_options: null
|
| 22 |
+
with_batch_dim: false
|
| 23 |
+
- name: keras.ops.expand_dims
|
| 24 |
+
params:
|
| 25 |
+
axis: 0
|
| 26 |
+
jit_compile: false
|
| 27 |
+
params:
|
| 28 |
+
argnames:
|
| 29 |
+
- data
|
| 30 |
+
- probe_translation
|
| 31 |
+
- probe_rotation
|
| 32 |
+
batch_size: 1
|
| 33 |
+
with_batch_dim: false
|
| 34 |
+
- name: keras.ops.sum
|
| 35 |
+
params:
|
| 36 |
+
axis: 0
|
| 37 |
+
- envelope_detect
|
| 38 |
+
- name: normalize
|
| 39 |
+
params:
|
| 40 |
+
output_range:
|
| 41 |
+
- 0.0
|
| 42 |
+
- 1.0
|
| 43 |
+
- log_compress
|
| 44 |
+
with_batch_dim: false
|
|
|
concordia/README.md
CHANGED
|
@@ -137,7 +137,7 @@ Fields from Arbitrarily Shaped, Apodized, and Excited Ultrasound Transducers,"
|
|
| 137 |
|
| 138 |
The dataset is 2,000 individual zea HDF5 files (one acquisition per file) under
|
| 139 |
`data/` (zea format; `zea_version` 0.1.6). Reference figures are in
|
| 140 |
-
`examples/`; `reconstruct.py`, `
|
| 141 |
at the repository root. Per file:
|
| 142 |
|
| 143 |
- `data/raw_data` — full FSA channel data, `int16`, quantized from the native
|
|
@@ -244,25 +244,23 @@ scatterers (amplitude 18–22) scattered at valid random positions, for realism.
|
|
| 244 |
|
| 245 |
## Data Validation
|
| 246 |
|
| 247 |
-
**Setup:** `reconstruct.py`
|
| 248 |
and `KERAS_BACKEND=jax` (or `torch`/`tensorflow`) set before import. This submission
|
| 249 |
was built and verified against the [OpenH-RF repo](https://github.com/open-h/OpenH-RF)'s environment (`uv sync` inside a clone of that repo installs `zea` and every other
|
| 250 |
-
dependency
|
| 251 |
|
| 252 |
`reconstruct.py` (+ `pipeline.yaml`, zea's default DAS pipeline: Cast → ApplyWindow →
|
| 253 |
Demodulate → Beamform → EnvelopeDetect → Normalize → LogCompress; each stage is
|
| 254 |
explained in `reconstruct.py`'s own module docstring) reconstructs a synthetic
|
| 255 |
transmit aperture (STA) B-mode from `data/raw_data` using all 128 transmits, over
|
| 256 |
-
the same field of view as the stored `data/image` reference.
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
representative capture of each of the five classes, an `<id>_bmode.png` (the STA
|
| 260 |
-
reference reconstruction from `reconstruct.py`, physical mm axes, titled with the
|
| 261 |
-
sample ID) and an `<id>_panels.png` (the `visualize.py` output: stored `data/image`,
|
| 262 |
-
class label — segmentation foreground for anechoic/hypoechoic/hyperechoic,
|
| 263 |
`data/diverse_source_image` for diverse, none for point-target — and the
|
| 264 |
-
`data/scatterers` cloud coloured by |amplitude|, on shared equal-aspect mm
|
| 265 |
-
confirming the label, reconstruction, and scatterer field are spatially
|
|
|
|
|
|
|
| 266 |
|
| 267 |
## Known Issues
|
| 268 |
|
|
|
|
| 137 |
|
| 138 |
The dataset is 2,000 individual zea HDF5 files (one acquisition per file) under
|
| 139 |
`data/` (zea format; `zea_version` 0.1.6). Reference figures are in
|
| 140 |
+
`examples/`; `reconstruct.py`, `pipeline.yaml`, and this card sit
|
| 141 |
at the repository root. Per file:
|
| 142 |
|
| 143 |
- `data/raw_data` — full FSA channel data, `int16`, quantized from the native
|
|
|
|
| 244 |
|
| 245 |
## Data Validation
|
| 246 |
|
| 247 |
+
**Setup:** `reconstruct.py` requires `zea>=0.1.1`, `matplotlib`,
|
| 248 |
and `KERAS_BACKEND=jax` (or `torch`/`tensorflow`) set before import. This submission
|
| 249 |
was built and verified against the [OpenH-RF repo](https://github.com/open-h/OpenH-RF)'s environment (`uv sync` inside a clone of that repo installs `zea` and every other
|
| 250 |
+
dependency this script needs — see that repo's README for the exact commands).
|
| 251 |
|
| 252 |
`reconstruct.py` (+ `pipeline.yaml`, zea's default DAS pipeline: Cast → ApplyWindow →
|
| 253 |
Demodulate → Beamform → EnvelopeDetect → Normalize → LogCompress; each stage is
|
| 254 |
explained in `reconstruct.py`'s own module docstring) reconstructs a synthetic
|
| 255 |
transmit aperture (STA) B-mode from `data/raw_data` using all 128 transmits, over
|
| 256 |
+
the same field of view as the stored `data/image` reference. It renders that
|
| 257 |
+
reconstruction on physical mm axes next to the capture's class-specific label
|
| 258 |
+
— segmentation foreground for anechoic/hypoechoic/hyperechoic,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 259 |
`data/diverse_source_image` for diverse, none for point-target — and the
|
| 260 |
+
`data/scatterers` cloud coloured by |amplitude|, all on shared equal-aspect mm
|
| 261 |
+
axes, confirming the label, reconstruction, and scatterer field are spatially
|
| 262 |
+
registered. `examples/` holds one such figure for a representative capture of
|
| 263 |
+
each of the five classes.
|
| 264 |
|
| 265 |
## Known Issues
|
| 266 |
|
concordia/pipeline.yaml
CHANGED
|
@@ -5,9 +5,7 @@ pipeline:
|
|
| 5 |
dtype: float32
|
| 6 |
- apply_window
|
| 7 |
- demodulate
|
| 8 |
-
-
|
| 9 |
-
params:
|
| 10 |
-
num_patches: 200
|
| 11 |
- envelope_detect
|
| 12 |
- name: normalize
|
| 13 |
params:
|
|
|
|
| 5 |
dtype: float32
|
| 6 |
- apply_window
|
| 7 |
- demodulate
|
| 8 |
+
- beamform
|
|
|
|
|
|
|
| 9 |
- envelope_detect
|
| 10 |
- name: normalize
|
| 11 |
params:
|
concordia/wikimedia_commons_metadata.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
dartmouth-uct/pipeline.yaml
CHANGED
|
@@ -11,7 +11,6 @@ pipeline:
|
|
| 11 |
params:
|
| 12 |
with_batch_dim: false
|
| 13 |
jit_options: null
|
| 14 |
-
num_patches: 64
|
| 15 |
- reshape_grid
|
| 16 |
- name: normalize
|
| 17 |
params:
|
|
|
|
| 11 |
params:
|
| 12 |
with_batch_dim: false
|
| 13 |
jit_options: null
|
|
|
|
| 14 |
- reshape_grid
|
| 15 |
- name: normalize
|
| 16 |
params:
|
kaist-snubh-barreleye/pipeline.yaml
CHANGED
|
@@ -10,9 +10,7 @@ pipeline:
|
|
| 10 |
- 1000000.0
|
| 11 |
- 12000000.0
|
| 12 |
- demodulate
|
| 13 |
-
-
|
| 14 |
-
params:
|
| 15 |
-
num_patches: 200
|
| 16 |
- envelope_detect
|
| 17 |
- name: normalize
|
| 18 |
params:
|
|
|
|
| 10 |
- 1000000.0
|
| 11 |
- 12000000.0
|
| 12 |
- demodulate
|
| 13 |
+
- beamform
|
|
|
|
|
|
|
| 14 |
- envelope_detect
|
| 15 |
- name: normalize
|
| 16 |
params:
|
oslo/A_cardiac/README.md
CHANGED
|
@@ -1,124 +1,124 @@
|
|
| 1 |
-
---
|
| 2 |
-
pretty_name: "USTB - In-vivo Cardiac (Verasonics P4-2)"
|
| 3 |
-
license: cc-by-4.0
|
| 4 |
-
task_categories:
|
| 5 |
-
- image-to-image
|
| 6 |
-
language:
|
| 7 |
-
- en
|
| 8 |
-
tags:
|
| 9 |
-
- ultrasound
|
| 10 |
-
- rf
|
| 11 |
-
- openh-rf
|
| 12 |
-
- cardiac
|
| 13 |
-
- in-vivo
|
| 14 |
-
size_categories:
|
| 15 |
-
- n<1K
|
| 16 |
-
---
|
| 17 |
-
|
| 18 |
-
# USTB - In-vivo Cardiac (Verasonics P4-2)
|
| 19 |
-
|
| 20 |
-
Part of the **UltraSound ToolBox (USTB) Channel Capture Collection** contributed to the
|
| 21 |
-
[OpenH-RF](https://github.com/open-h/OpenH-RF) initiative. All acquisitions are stored in the
|
| 22 |
-
*zea* HDF5 file format (zea_version 0.1.6) and contain raw pre-beamformed
|
| 23 |
-
channel data (`/data/raw_data`).
|
| 24 |
-
|
| 25 |
-
## Dataset Description
|
| 26 |
-
|
| 27 |
-
In-vivo human cardiac channel-capture data acquired with a Verasonics Vantage 256 research scanner and a P4-2 phased-array probe. The collection contains parasternal long-axis and apical four-chamber views recorded with focused transmit beams (sector scan). The data is pre-beamformed RF channel data intended for research into generalized beamforming, adaptive imaging and cardiac reconstruction.
|
| 28 |
-
|
| 29 |
-
## Dataset Contributors
|
| 30 |
-
|
| 31 |
-
University of Oslo (UiO), Department of Informatics. Primary contact: Ole Marius Hoel Rindal (omrindal@ifi.uio.no). Team: Ole Marius Hoel Rindal, Yucel Karabiyik, Sven Peter Nasholm, Andreas Austeng.
|
| 32 |
-
|
| 33 |
-
## Dataset Creation Date
|
| 34 |
-
|
| 35 |
-
06/23/2026 (packaging date; original acquisitions/simulations were produced between 2016 and 2023).
|
| 36 |
-
|
| 37 |
-
## License / Terms of Use
|
| 38 |
-
|
| 39 |
-
Released under **Creative Commons Attribution 4.0 International (CC BY 4.0)** — see the `LICENCE`
|
| 40 |
-
file at the submission root (this license is also declared in the YAML frontmatter above). The
|
| 41 |
-
contributed data is cleared for this license. The UltraSound ToolBox (USTB) Channel Capture Collection, University of Oslo. Contributed to OpenH-RF. Zenodo record 20261898.
|
| 42 |
-
|
| 43 |
-
## Intended Usage
|
| 44 |
-
|
| 45 |
-
Generalized reconstruction and adaptive beamforming of cardiac ultrasound (RFP task 6.1). Suitable for B-mode reconstruction, aperture-domain processing, and deep-learning beamforming research on in-vivo cardiac data. (OpenH-RF RFP task 6.1 Generalized Reconstruction).
|
| 46 |
-
|
| 47 |
-
## Dataset Characterization
|
| 48 |
-
|
| 49 |
-
- **Data Collection Method:** clinical
|
| 50 |
-
- **Labeling Method:** N/A (raw channel data; no annotations).
|
| 51 |
-
- **Acquisition system:** probe(s) P4-2;
|
| 52 |
-
element positions stored in `/probe/probe_geometry` (meters); center frequency, sampling
|
| 53 |
-
frequency and sound speed stored per acquisition in `/scan` (see per-sample feature table).
|
| 54 |
-
|
| 55 |
-
## Dataset Format
|
| 56 |
-
|
| 57 |
-
All acquisitions are stored in the **zea** HDF5 file format. Each `.hdf5` file is a single
|
| 58 |
-
acquisition with raw channel data `/data/raw_data` of shape
|
| 59 |
-
`(n_frames, n_tx, n_ax, n_el, n_ch)` and a fully populated `/scan` group describing the transmit
|
| 60 |
-
sequence (delays, focus distances, steering angles, apodization, timing). Data type: RF (n_ch=1).
|
| 61 |
-
No demodulation or decimation was applied during packaging beyond conversion from the USTB
|
| 62 |
-
Ultrasound File Format (UFF) to zea; RF data is demodulated inside the reconstruction pipeline.
|
| 63 |
-
|
| 64 |
-
## Dataset Quantification
|
| 65 |
-
|
| 66 |
-
**Current OpenH-RF release:** 2 HDF5 files; 3.53 GB (3,533,897,728 bytes) stored; root `zea_version` **0.1.6**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
|
| 67 |
-
|
| 68 |
-
- **Number of acquisitions:** 2
|
| 69 |
-
- **Total channel-capture frames:** 75
|
| 70 |
-
- **Train / validation / test split:** not predefined (research dataset).
|
| 71 |
-
- **Stored HDF5 size:** 3.53 GB (3,533,897,728 bytes).
|
| 72 |
-
|
| 73 |
-
Per-acquisition summary:
|
| 74 |
-
|
| 75 |
-
| Acquisition | frames | transmits | samples | elements | n_ch | fs (MHz) | fc (MHz) | size (MB) |
|
| 76 |
-
|---|---|---|---|---|---|---|---|---|
|
| 77 |
-
| `Verasonics_P2-4_apical_four_chamber_subject_1` | 25 | 101 | 2176 | 64 | 1 | 11.9 | 2.98 | 1181.42 |
|
| 78 |
-
| `Verasonics_P2-4_parasternal_long_subject_1` | 50 | 101 | 2176 | 64 | 1 | 11.9 | 2.98 | 2352.48 |
|
| 79 |
-
|
| 80 |
-
Per-sample feature table:
|
| 81 |
-
|
| 82 |
-
| Field | Shape | Dtype | Units | Description |
|
| 83 |
-
|---|---|---|---|---|
|
| 84 |
-
| `data/raw_data` | `(n_frames, n_tx, n_ax, n_el, n_ch)` | float32 | a.u. | Raw pre-beamformed RF channel data |
|
| 85 |
-
| `scan/sampling_frequency` | `scalar` | float32 | Hz | A/D sampling frequency |
|
| 86 |
-
| `scan/center_frequency` | `scalar` | float32 | Hz | Transmit pulse center frequency |
|
| 87 |
-
| `scan/demodulation_frequency` | `scalar` | float32 | Hz | Demodulation (carrier) frequency |
|
| 88 |
-
| `scan/sound_speed` | `scalar` | float32 | m/s | Assumed medium speed of sound |
|
| 89 |
-
| `scan/initial_times` | `(n_tx,)` | float32 | s | A/D start time per transmit |
|
| 90 |
-
| `scan/t0_delays` | `(n_tx, n_el)` | float32 | s | Per-element transmit fire times |
|
| 91 |
-
| `scan/tx_apodizations` | `(n_tx, n_el)` | float32 | - | Per-element transmit apodization |
|
| 92 |
-
| `scan/focus_distances` | `(n_tx,)` | float32 | m | Focus distance per transmit (0 = plane wave) |
|
| 93 |
-
| `scan/polar_angles` | `(n_tx,)` | float32 | rad | Transmit steering (polar) angle |
|
| 94 |
-
| `scan/transmit_origins` | `(n_tx, 3)` | float32 | m | Transmit beam origin (x, y, z) |
|
| 95 |
-
| `probe/probe_geometry` | `(n_el, 3)` | float32 | m | Element positions (x, y, z) |
|
| 96 |
-
|
| 97 |
-
## Subject Metadata
|
| 98 |
-
|
| 99 |
-
Healthy adult volunteer(s). Anatomy: heart (parasternal long-axis, apical four-chamber). Scanner: Verasonics Vantage 256. Probe: P4-2 phased array (64 elements). Aggregate only; no per-subject identifiers are stored.
|
| 100 |
-
|
| 101 |
-
## Data Validation
|
| 102 |
-
|
| 103 |
-
A Delay-And-Sum `zea.Pipeline` is provided in the **`pipeline.yaml` at the submission root** and
|
| 104 |
-
run by the single **`reconstruct.py` at the submission root**:
|
| 105 |
-
`cast -> demodulate -> delay-and-sum beamform -> envelope detect -> normalize -> log compress`
|
| 106 |
-
(RF is demodulated in-pipeline; IQ uses a baseband pipeline). The script is geometry-driven and
|
| 107 |
-
recurses into every sub-dataset folder; running `python reconstruct.py` from the root reconstructs
|
| 108 |
-
every `.hdf5` in the collection (or pass a folder-qualified path for a single acquisition) and writes
|
| 109 |
-
`<name>_zea_bmode.png` next to each file as a portable check that the recorded geometry and timing
|
| 110 |
-
are correct.
|
| 111 |
-
|
| 112 |
-
The reference B-mode images committed alongside the data (`<name>_bmode.png`) are produced with the
|
| 113 |
-
UltraSound ToolBox (USTB) MATLAB Delay-And-Sum beamformer — the exact per-dataset reconstruction
|
| 114 |
-
used in the public USTB dataset catalog (https://unioslo.github.io/USTB/datasets.html), with
|
| 115 |
-
scanline transmit apodization for focused/sector acquisitions and correct sector-scan geometry.
|
| 116 |
-
These are the recommended reference reconstructions for visual verification.
|
| 117 |
-
|
| 118 |
-
## Known Issues
|
| 119 |
-
|
| 120 |
-
Focused sector acquisition: lateral resolution and field of view follow the transmit geometry. Phased-array data is best reconstructed on a polar (sector) grid. Frame counts vary per acquisition.
|
| 121 |
-
|
| 122 |
-
## Ethical Considerations
|
| 123 |
-
|
| 124 |
-
In-vivo data recorded from healthy adult volunteers at the University of Oslo with written informed consent for research use and data sharing, and approval from the Regional Committee for Medical and Health Research Ethics (REK), Norway. The files contain only backscattered RF channel data and acquisition parameters - no patient name, identifier, date of birth, acquisition date, facial image, or any other HHS Safe Harbor identifier is present (de-identified by construction).
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: "USTB - In-vivo Cardiac (Verasonics P4-2)"
|
| 3 |
+
license: cc-by-4.0
|
| 4 |
+
task_categories:
|
| 5 |
+
- image-to-image
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- ultrasound
|
| 10 |
+
- rf
|
| 11 |
+
- openh-rf
|
| 12 |
+
- cardiac
|
| 13 |
+
- in-vivo
|
| 14 |
+
size_categories:
|
| 15 |
+
- n<1K
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# USTB - In-vivo Cardiac (Verasonics P4-2)
|
| 19 |
+
|
| 20 |
+
Part of the **UltraSound ToolBox (USTB) Channel Capture Collection** contributed to the
|
| 21 |
+
[OpenH-RF](https://github.com/open-h/OpenH-RF) initiative. All acquisitions are stored in the
|
| 22 |
+
*zea* HDF5 file format (zea_version 0.1.6) and contain raw pre-beamformed
|
| 23 |
+
channel data (`/data/raw_data`).
|
| 24 |
+
|
| 25 |
+
## Dataset Description
|
| 26 |
+
|
| 27 |
+
In-vivo human cardiac channel-capture data acquired with a Verasonics Vantage 256 research scanner and a P4-2 phased-array probe. The collection contains parasternal long-axis and apical four-chamber views recorded with focused transmit beams (sector scan). The data is pre-beamformed RF channel data intended for research into generalized beamforming, adaptive imaging and cardiac reconstruction.
|
| 28 |
+
|
| 29 |
+
## Dataset Contributors
|
| 30 |
+
|
| 31 |
+
University of Oslo (UiO), Department of Informatics. Primary contact: Ole Marius Hoel Rindal (omrindal@ifi.uio.no). Team: Ole Marius Hoel Rindal, Yucel Karabiyik, Sven Peter Nasholm, Andreas Austeng.
|
| 32 |
+
|
| 33 |
+
## Dataset Creation Date
|
| 34 |
+
|
| 35 |
+
06/23/2026 (packaging date; original acquisitions/simulations were produced between 2016 and 2023).
|
| 36 |
+
|
| 37 |
+
## License / Terms of Use
|
| 38 |
+
|
| 39 |
+
Released under **Creative Commons Attribution 4.0 International (CC BY 4.0)** — see the `LICENCE`
|
| 40 |
+
file at the submission root (this license is also declared in the YAML frontmatter above). The
|
| 41 |
+
contributed data is cleared for this license. The UltraSound ToolBox (USTB) Channel Capture Collection, University of Oslo. Contributed to OpenH-RF. Zenodo record 20261898.
|
| 42 |
+
|
| 43 |
+
## Intended Usage
|
| 44 |
+
|
| 45 |
+
Generalized reconstruction and adaptive beamforming of cardiac ultrasound (RFP task 6.1). Suitable for B-mode reconstruction, aperture-domain processing, and deep-learning beamforming research on in-vivo cardiac data. (OpenH-RF RFP task 6.1 Generalized Reconstruction).
|
| 46 |
+
|
| 47 |
+
## Dataset Characterization
|
| 48 |
+
|
| 49 |
+
- **Data Collection Method:** clinical
|
| 50 |
+
- **Labeling Method:** N/A (raw channel data; no annotations).
|
| 51 |
+
- **Acquisition system:** probe(s) P4-2;
|
| 52 |
+
element positions stored in `/probe/probe_geometry` (meters); center frequency, sampling
|
| 53 |
+
frequency and sound speed stored per acquisition in `/scan` (see per-sample feature table).
|
| 54 |
+
|
| 55 |
+
## Dataset Format
|
| 56 |
+
|
| 57 |
+
All acquisitions are stored in the **zea** HDF5 file format. Each `.hdf5` file is a single
|
| 58 |
+
acquisition with raw channel data `/data/raw_data` of shape
|
| 59 |
+
`(n_frames, n_tx, n_ax, n_el, n_ch)` and a fully populated `/scan` group describing the transmit
|
| 60 |
+
sequence (delays, focus distances, steering angles, apodization, timing). Data type: RF (n_ch=1).
|
| 61 |
+
No demodulation or decimation was applied during packaging beyond conversion from the USTB
|
| 62 |
+
Ultrasound File Format (UFF) to zea; RF data is demodulated inside the reconstruction pipeline.
|
| 63 |
+
|
| 64 |
+
## Dataset Quantification
|
| 65 |
+
|
| 66 |
+
**Current OpenH-RF release:** 2 HDF5 files; 3.53 GB (3,533,897,728 bytes) stored; root `zea_version` **0.1.6**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
|
| 67 |
+
|
| 68 |
+
- **Number of acquisitions:** 2
|
| 69 |
+
- **Total channel-capture frames:** 75
|
| 70 |
+
- **Train / validation / test split:** not predefined (research dataset).
|
| 71 |
+
- **Stored HDF5 size:** 3.53 GB (3,533,897,728 bytes).
|
| 72 |
+
|
| 73 |
+
Per-acquisition summary:
|
| 74 |
+
|
| 75 |
+
| Acquisition | frames | transmits | samples | elements | n_ch | fs (MHz) | fc (MHz) | size (MB) |
|
| 76 |
+
|---|---|---|---|---|---|---|---|---|
|
| 77 |
+
| `Verasonics_P2-4_apical_four_chamber_subject_1` | 25 | 101 | 2176 | 64 | 1 | 11.9 | 2.98 | 1181.42 |
|
| 78 |
+
| `Verasonics_P2-4_parasternal_long_subject_1` | 50 | 101 | 2176 | 64 | 1 | 11.9 | 2.98 | 2352.48 |
|
| 79 |
+
|
| 80 |
+
Per-sample feature table:
|
| 81 |
+
|
| 82 |
+
| Field | Shape | Dtype | Units | Description |
|
| 83 |
+
|---|---|---|---|---|
|
| 84 |
+
| `data/raw_data` | `(n_frames, n_tx, n_ax, n_el, n_ch)` | float32 | a.u. | Raw pre-beamformed RF channel data |
|
| 85 |
+
| `scan/sampling_frequency` | `scalar` | float32 | Hz | A/D sampling frequency |
|
| 86 |
+
| `scan/center_frequency` | `scalar` | float32 | Hz | Transmit pulse center frequency |
|
| 87 |
+
| `scan/demodulation_frequency` | `scalar` | float32 | Hz | Demodulation (carrier) frequency |
|
| 88 |
+
| `scan/sound_speed` | `scalar` | float32 | m/s | Assumed medium speed of sound |
|
| 89 |
+
| `scan/initial_times` | `(n_tx,)` | float32 | s | A/D start time per transmit |
|
| 90 |
+
| `scan/t0_delays` | `(n_tx, n_el)` | float32 | s | Per-element transmit fire times |
|
| 91 |
+
| `scan/tx_apodizations` | `(n_tx, n_el)` | float32 | - | Per-element transmit apodization |
|
| 92 |
+
| `scan/focus_distances` | `(n_tx,)` | float32 | m | Focus distance per transmit (0 = plane wave) |
|
| 93 |
+
| `scan/polar_angles` | `(n_tx,)` | float32 | rad | Transmit steering (polar) angle |
|
| 94 |
+
| `scan/transmit_origins` | `(n_tx, 3)` | float32 | m | Transmit beam origin (x, y, z) |
|
| 95 |
+
| `probe/probe_geometry` | `(n_el, 3)` | float32 | m | Element positions (x, y, z) |
|
| 96 |
+
|
| 97 |
+
## Subject Metadata
|
| 98 |
+
|
| 99 |
+
Healthy adult volunteer(s). Anatomy: heart (parasternal long-axis, apical four-chamber). Scanner: Verasonics Vantage 256. Probe: P4-2 phased array (64 elements). Aggregate only; no per-subject identifiers are stored.
|
| 100 |
+
|
| 101 |
+
## Data Validation
|
| 102 |
+
|
| 103 |
+
A Delay-And-Sum `zea.Pipeline` is provided in the **`pipeline.yaml` at the submission root** and
|
| 104 |
+
run by the single **`reconstruct.py` at the submission root**:
|
| 105 |
+
`cast -> demodulate -> delay-and-sum beamform -> envelope detect -> normalize -> log compress`
|
| 106 |
+
(RF is demodulated in-pipeline; IQ uses a baseband pipeline). The script is geometry-driven and
|
| 107 |
+
recurses into every sub-dataset folder; running `python reconstruct.py` from the root reconstructs
|
| 108 |
+
every `.hdf5` in the collection (or pass a folder-qualified path for a single acquisition) and writes
|
| 109 |
+
`<name>_zea_bmode.png` next to each file as a portable check that the recorded geometry and timing
|
| 110 |
+
are correct.
|
| 111 |
+
|
| 112 |
+
The reference B-mode images committed alongside the data (`<name>_bmode.png`) are produced with the
|
| 113 |
+
UltraSound ToolBox (USTB) MATLAB Delay-And-Sum beamformer — the exact per-dataset reconstruction
|
| 114 |
+
used in the public USTB dataset catalog (https://unioslo.github.io/USTB/datasets.html), with
|
| 115 |
+
scanline transmit apodization for focused/sector acquisitions and correct sector-scan geometry.
|
| 116 |
+
These are the recommended reference reconstructions for visual verification.
|
| 117 |
+
|
| 118 |
+
## Known Issues
|
| 119 |
+
|
| 120 |
+
Focused sector acquisition: lateral resolution and field of view follow the transmit geometry. Phased-array data is best reconstructed on a polar (sector) grid. Frame counts vary per acquisition.
|
| 121 |
+
|
| 122 |
+
## Ethical Considerations
|
| 123 |
+
|
| 124 |
+
In-vivo data recorded from healthy adult volunteers at the University of Oslo with written informed consent for research use and data sharing, and approval from the Regional Committee for Medical and Health Research Ethics (REK), Norway. The files contain only backscattered RF channel data and acquisition parameters - no patient name, identifier, date of birth, acquisition date, facial image, or any other HHS Safe Harbor identifier is present (de-identified by construction).
|
oslo/B_carotid/README.md
CHANGED
|
@@ -1,126 +1,126 @@
|
|
| 1 |
-
---
|
| 2 |
-
pretty_name: "USTB - In-vivo Carotid (Verasonics L7-4)"
|
| 3 |
-
license: cc-by-4.0
|
| 4 |
-
task_categories:
|
| 5 |
-
- image-to-image
|
| 6 |
-
language:
|
| 7 |
-
- en
|
| 8 |
-
tags:
|
| 9 |
-
- ultrasound
|
| 10 |
-
- rf
|
| 11 |
-
- openh-rf
|
| 12 |
-
- vascular
|
| 13 |
-
- carotid
|
| 14 |
-
- in-vivo
|
| 15 |
-
size_categories:
|
| 16 |
-
- n<1K
|
| 17 |
-
---
|
| 18 |
-
|
| 19 |
-
# USTB - In-vivo Carotid (Verasonics L7-4)
|
| 20 |
-
|
| 21 |
-
Part of the **UltraSound ToolBox (USTB) Channel Capture Collection** contributed to the
|
| 22 |
-
[OpenH-RF](https://github.com/open-h/OpenH-RF) initiative. All acquisitions are stored in the
|
| 23 |
-
*zea* HDF5 file format (zea_version 0.1.6) and contain raw pre-beamformed
|
| 24 |
-
channel data (`/data/raw_data`).
|
| 25 |
-
|
| 26 |
-
## Dataset Description
|
| 27 |
-
|
| 28 |
-
In-vivo human carotid-artery channel-capture data acquired with a Verasonics Vantage 256 and an L7-4 linear-array probe, cross-sectional views, focused transmit imaging. Pre-beamformed RF channel data for vascular imaging and beamforming research.
|
| 29 |
-
|
| 30 |
-
## Dataset Contributors
|
| 31 |
-
|
| 32 |
-
University of Oslo (UiO), Department of Informatics. Primary contact: Ole Marius Hoel Rindal (omrindal@ifi.uio.no). Team: Ole Marius Hoel Rindal, Yucel Karabiyik, Sven Peter Nasholm, Andreas Austeng.
|
| 33 |
-
|
| 34 |
-
## Dataset Creation Date
|
| 35 |
-
|
| 36 |
-
06/23/2026 (packaging date; original acquisitions/simulations were produced between 2016 and 2023).
|
| 37 |
-
|
| 38 |
-
## License / Terms of Use
|
| 39 |
-
|
| 40 |
-
Released under **Creative Commons Attribution 4.0 International (CC BY 4.0)** — see the `LICENCE`
|
| 41 |
-
file at the submission root (this license is also declared in the YAML frontmatter above). The
|
| 42 |
-
contributed data is cleared for this license. The UltraSound ToolBox (USTB) Channel Capture Collection, University of Oslo. Contributed to OpenH-RF. Zenodo record 20261898.
|
| 43 |
-
|
| 44 |
-
## Intended Usage
|
| 45 |
-
|
| 46 |
-
Generalized reconstruction and adaptive beamforming of vascular ultrasound (RFP task 6.1). (OpenH-RF RFP task 6.1 Generalized Reconstruction).
|
| 47 |
-
|
| 48 |
-
## Dataset Characterization
|
| 49 |
-
|
| 50 |
-
- **Data Collection Method:** clinical
|
| 51 |
-
- **Labeling Method:** N/A (raw channel data; no annotations).
|
| 52 |
-
- **Acquisition system:** probe(s) L7-4;
|
| 53 |
-
element positions stored in `/probe/probe_geometry` (meters); center frequency, sampling
|
| 54 |
-
frequency and sound speed stored per acquisition in `/scan` (see per-sample feature table).
|
| 55 |
-
|
| 56 |
-
## Dataset Format
|
| 57 |
-
|
| 58 |
-
All acquisitions are stored in the **zea** HDF5 file format. Each `.hdf5` file is a single
|
| 59 |
-
acquisition with raw channel data `/data/raw_data` of shape
|
| 60 |
-
`(n_frames, n_tx, n_ax, n_el, n_ch)` and a fully populated `/scan` group describing the transmit
|
| 61 |
-
sequence (delays, focus distances, steering angles, apodization, timing). Data type: RF (n_ch=1).
|
| 62 |
-
No demodulation or decimation was applied during packaging beyond conversion from the USTB
|
| 63 |
-
Ultrasound File Format (UFF) to zea; RF data is demodulated inside the reconstruction pipeline.
|
| 64 |
-
|
| 65 |
-
## Dataset Quantification
|
| 66 |
-
|
| 67 |
-
**Current OpenH-RF release:** 3 HDF5 files; 219.48 MB (219,480,064 bytes) stored; root `zea_version` **0.1.6**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
|
| 68 |
-
|
| 69 |
-
- **Number of acquisitions:** 3
|
| 70 |
-
- **Total channel-capture frames:** 6
|
| 71 |
-
- **Train / validation / test split:** not predefined (research dataset).
|
| 72 |
-
- **Stored HDF5 size:** 219.48 MB (219,480,064 bytes).
|
| 73 |
-
|
| 74 |
-
Per-acquisition summary:
|
| 75 |
-
|
| 76 |
-
| Acquisition | frames | transmits | samples | elements | n_ch | fs (MHz) | fc (MHz) | size (MB) |
|
| 77 |
-
|---|---|---|---|---|---|---|---|---|
|
| 78 |
-
| `L7_FI_carotid_cross_1` | 2 | 128 | 1920 | 128 | 1 | 20.8 | 5.21 | 82.84 |
|
| 79 |
-
| `L7_FI_carotid_cross_2` | 2 | 128 | 1920 | 128 | 1 | 20.8 | 5.21 | 66.98 |
|
| 80 |
-
| `L7_FI_carotid_cross_sub_2` | 2 | 128 | 1920 | 128 | 1 | 20.8 | 5.21 | 69.66 |
|
| 81 |
-
|
| 82 |
-
Per-sample feature table:
|
| 83 |
-
|
| 84 |
-
| Field | Shape | Dtype | Units | Description |
|
| 85 |
-
|---|---|---|---|---|
|
| 86 |
-
| `data/raw_data` | `(n_frames, n_tx, n_ax, n_el, n_ch)` | float32 | a.u. | Raw pre-beamformed RF channel data |
|
| 87 |
-
| `scan/sampling_frequency` | `scalar` | float32 | Hz | A/D sampling frequency |
|
| 88 |
-
| `scan/center_frequency` | `scalar` | float32 | Hz | Transmit pulse center frequency |
|
| 89 |
-
| `scan/demodulation_frequency` | `scalar` | float32 | Hz | Demodulation (carrier) frequency |
|
| 90 |
-
| `scan/sound_speed` | `scalar` | float32 | m/s | Assumed medium speed of sound |
|
| 91 |
-
| `scan/initial_times` | `(n_tx,)` | float32 | s | A/D start time per transmit |
|
| 92 |
-
| `scan/t0_delays` | `(n_tx, n_el)` | float32 | s | Per-element transmit fire times |
|
| 93 |
-
| `scan/tx_apodizations` | `(n_tx, n_el)` | float32 | - | Per-element transmit apodization |
|
| 94 |
-
| `scan/focus_distances` | `(n_tx,)` | float32 | m | Focus distance per transmit (0 = plane wave) |
|
| 95 |
-
| `scan/polar_angles` | `(n_tx,)` | float32 | rad | Transmit steering (polar) angle |
|
| 96 |
-
| `scan/transmit_origins` | `(n_tx, 3)` | float32 | m | Transmit beam origin (x, y, z) |
|
| 97 |
-
| `probe/probe_geometry` | `(n_el, 3)` | float32 | m | Element positions (x, y, z) |
|
| 98 |
-
|
| 99 |
-
## Subject Metadata
|
| 100 |
-
|
| 101 |
-
Healthy adult volunteer(s). Anatomy: carotid artery (cross-section). Scanner: Verasonics Vantage 256. Probe: L7-4 linear array (128 elements). Aggregate only; no per-subject identifiers.
|
| 102 |
-
|
| 103 |
-
## Data Validation
|
| 104 |
-
|
| 105 |
-
A Delay-And-Sum `zea.Pipeline` is provided in the **`pipeline.yaml` at the submission root** and
|
| 106 |
-
run by the single **`reconstruct.py` at the submission root**:
|
| 107 |
-
`cast -> demodulate -> delay-and-sum beamform -> envelope detect -> normalize -> log compress`
|
| 108 |
-
(RF is demodulated in-pipeline; IQ uses a baseband pipeline). The script is geometry-driven and
|
| 109 |
-
recurses into every sub-dataset folder; running `python reconstruct.py` from the root reconstructs
|
| 110 |
-
every `.hdf5` in the collection (or pass a folder-qualified path for a single acquisition) and writes
|
| 111 |
-
`<name>_zea_bmode.png` next to each file as a portable check that the recorded geometry and timing
|
| 112 |
-
are correct.
|
| 113 |
-
|
| 114 |
-
The reference B-mode images committed alongside the data (`<name>_bmode.png`) are produced with the
|
| 115 |
-
UltraSound ToolBox (USTB) MATLAB Delay-And-Sum beamformer — the exact per-dataset reconstruction
|
| 116 |
-
used in the public USTB dataset catalog (https://unioslo.github.io/USTB/datasets.html), with
|
| 117 |
-
scanline transmit apodization for focused/sector acquisitions and correct sector-scan geometry.
|
| 118 |
-
These are the recommended reference reconstructions for visual verification.
|
| 119 |
-
|
| 120 |
-
## Known Issues
|
| 121 |
-
|
| 122 |
-
Single/few-frame acquisitions; focused linear imaging.
|
| 123 |
-
|
| 124 |
-
## Ethical Considerations
|
| 125 |
-
|
| 126 |
-
In-vivo data recorded from healthy adult volunteers at the University of Oslo with written informed consent for research use and data sharing, and approval from the Regional Committee for Medical and Health Research Ethics (REK), Norway. Files contain only RF channel data and acquisition parameters; no HHS Safe Harbor identifiers are present.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: "USTB - In-vivo Carotid (Verasonics L7-4)"
|
| 3 |
+
license: cc-by-4.0
|
| 4 |
+
task_categories:
|
| 5 |
+
- image-to-image
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- ultrasound
|
| 10 |
+
- rf
|
| 11 |
+
- openh-rf
|
| 12 |
+
- vascular
|
| 13 |
+
- carotid
|
| 14 |
+
- in-vivo
|
| 15 |
+
size_categories:
|
| 16 |
+
- n<1K
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# USTB - In-vivo Carotid (Verasonics L7-4)
|
| 20 |
+
|
| 21 |
+
Part of the **UltraSound ToolBox (USTB) Channel Capture Collection** contributed to the
|
| 22 |
+
[OpenH-RF](https://github.com/open-h/OpenH-RF) initiative. All acquisitions are stored in the
|
| 23 |
+
*zea* HDF5 file format (zea_version 0.1.6) and contain raw pre-beamformed
|
| 24 |
+
channel data (`/data/raw_data`).
|
| 25 |
+
|
| 26 |
+
## Dataset Description
|
| 27 |
+
|
| 28 |
+
In-vivo human carotid-artery channel-capture data acquired with a Verasonics Vantage 256 and an L7-4 linear-array probe, cross-sectional views, focused transmit imaging. Pre-beamformed RF channel data for vascular imaging and beamforming research.
|
| 29 |
+
|
| 30 |
+
## Dataset Contributors
|
| 31 |
+
|
| 32 |
+
University of Oslo (UiO), Department of Informatics. Primary contact: Ole Marius Hoel Rindal (omrindal@ifi.uio.no). Team: Ole Marius Hoel Rindal, Yucel Karabiyik, Sven Peter Nasholm, Andreas Austeng.
|
| 33 |
+
|
| 34 |
+
## Dataset Creation Date
|
| 35 |
+
|
| 36 |
+
06/23/2026 (packaging date; original acquisitions/simulations were produced between 2016 and 2023).
|
| 37 |
+
|
| 38 |
+
## License / Terms of Use
|
| 39 |
+
|
| 40 |
+
Released under **Creative Commons Attribution 4.0 International (CC BY 4.0)** — see the `LICENCE`
|
| 41 |
+
file at the submission root (this license is also declared in the YAML frontmatter above). The
|
| 42 |
+
contributed data is cleared for this license. The UltraSound ToolBox (USTB) Channel Capture Collection, University of Oslo. Contributed to OpenH-RF. Zenodo record 20261898.
|
| 43 |
+
|
| 44 |
+
## Intended Usage
|
| 45 |
+
|
| 46 |
+
Generalized reconstruction and adaptive beamforming of vascular ultrasound (RFP task 6.1). (OpenH-RF RFP task 6.1 Generalized Reconstruction).
|
| 47 |
+
|
| 48 |
+
## Dataset Characterization
|
| 49 |
+
|
| 50 |
+
- **Data Collection Method:** clinical
|
| 51 |
+
- **Labeling Method:** N/A (raw channel data; no annotations).
|
| 52 |
+
- **Acquisition system:** probe(s) L7-4;
|
| 53 |
+
element positions stored in `/probe/probe_geometry` (meters); center frequency, sampling
|
| 54 |
+
frequency and sound speed stored per acquisition in `/scan` (see per-sample feature table).
|
| 55 |
+
|
| 56 |
+
## Dataset Format
|
| 57 |
+
|
| 58 |
+
All acquisitions are stored in the **zea** HDF5 file format. Each `.hdf5` file is a single
|
| 59 |
+
acquisition with raw channel data `/data/raw_data` of shape
|
| 60 |
+
`(n_frames, n_tx, n_ax, n_el, n_ch)` and a fully populated `/scan` group describing the transmit
|
| 61 |
+
sequence (delays, focus distances, steering angles, apodization, timing). Data type: RF (n_ch=1).
|
| 62 |
+
No demodulation or decimation was applied during packaging beyond conversion from the USTB
|
| 63 |
+
Ultrasound File Format (UFF) to zea; RF data is demodulated inside the reconstruction pipeline.
|
| 64 |
+
|
| 65 |
+
## Dataset Quantification
|
| 66 |
+
|
| 67 |
+
**Current OpenH-RF release:** 3 HDF5 files; 219.48 MB (219,480,064 bytes) stored; root `zea_version` **0.1.6**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
|
| 68 |
+
|
| 69 |
+
- **Number of acquisitions:** 3
|
| 70 |
+
- **Total channel-capture frames:** 6
|
| 71 |
+
- **Train / validation / test split:** not predefined (research dataset).
|
| 72 |
+
- **Stored HDF5 size:** 219.48 MB (219,480,064 bytes).
|
| 73 |
+
|
| 74 |
+
Per-acquisition summary:
|
| 75 |
+
|
| 76 |
+
| Acquisition | frames | transmits | samples | elements | n_ch | fs (MHz) | fc (MHz) | size (MB) |
|
| 77 |
+
|---|---|---|---|---|---|---|---|---|
|
| 78 |
+
| `L7_FI_carotid_cross_1` | 2 | 128 | 1920 | 128 | 1 | 20.8 | 5.21 | 82.84 |
|
| 79 |
+
| `L7_FI_carotid_cross_2` | 2 | 128 | 1920 | 128 | 1 | 20.8 | 5.21 | 66.98 |
|
| 80 |
+
| `L7_FI_carotid_cross_sub_2` | 2 | 128 | 1920 | 128 | 1 | 20.8 | 5.21 | 69.66 |
|
| 81 |
+
|
| 82 |
+
Per-sample feature table:
|
| 83 |
+
|
| 84 |
+
| Field | Shape | Dtype | Units | Description |
|
| 85 |
+
|---|---|---|---|---|
|
| 86 |
+
| `data/raw_data` | `(n_frames, n_tx, n_ax, n_el, n_ch)` | float32 | a.u. | Raw pre-beamformed RF channel data |
|
| 87 |
+
| `scan/sampling_frequency` | `scalar` | float32 | Hz | A/D sampling frequency |
|
| 88 |
+
| `scan/center_frequency` | `scalar` | float32 | Hz | Transmit pulse center frequency |
|
| 89 |
+
| `scan/demodulation_frequency` | `scalar` | float32 | Hz | Demodulation (carrier) frequency |
|
| 90 |
+
| `scan/sound_speed` | `scalar` | float32 | m/s | Assumed medium speed of sound |
|
| 91 |
+
| `scan/initial_times` | `(n_tx,)` | float32 | s | A/D start time per transmit |
|
| 92 |
+
| `scan/t0_delays` | `(n_tx, n_el)` | float32 | s | Per-element transmit fire times |
|
| 93 |
+
| `scan/tx_apodizations` | `(n_tx, n_el)` | float32 | - | Per-element transmit apodization |
|
| 94 |
+
| `scan/focus_distances` | `(n_tx,)` | float32 | m | Focus distance per transmit (0 = plane wave) |
|
| 95 |
+
| `scan/polar_angles` | `(n_tx,)` | float32 | rad | Transmit steering (polar) angle |
|
| 96 |
+
| `scan/transmit_origins` | `(n_tx, 3)` | float32 | m | Transmit beam origin (x, y, z) |
|
| 97 |
+
| `probe/probe_geometry` | `(n_el, 3)` | float32 | m | Element positions (x, y, z) |
|
| 98 |
+
|
| 99 |
+
## Subject Metadata
|
| 100 |
+
|
| 101 |
+
Healthy adult volunteer(s). Anatomy: carotid artery (cross-section). Scanner: Verasonics Vantage 256. Probe: L7-4 linear array (128 elements). Aggregate only; no per-subject identifiers.
|
| 102 |
+
|
| 103 |
+
## Data Validation
|
| 104 |
+
|
| 105 |
+
A Delay-And-Sum `zea.Pipeline` is provided in the **`pipeline.yaml` at the submission root** and
|
| 106 |
+
run by the single **`reconstruct.py` at the submission root**:
|
| 107 |
+
`cast -> demodulate -> delay-and-sum beamform -> envelope detect -> normalize -> log compress`
|
| 108 |
+
(RF is demodulated in-pipeline; IQ uses a baseband pipeline). The script is geometry-driven and
|
| 109 |
+
recurses into every sub-dataset folder; running `python reconstruct.py` from the root reconstructs
|
| 110 |
+
every `.hdf5` in the collection (or pass a folder-qualified path for a single acquisition) and writes
|
| 111 |
+
`<name>_zea_bmode.png` next to each file as a portable check that the recorded geometry and timing
|
| 112 |
+
are correct.
|
| 113 |
+
|
| 114 |
+
The reference B-mode images committed alongside the data (`<name>_bmode.png`) are produced with the
|
| 115 |
+
UltraSound ToolBox (USTB) MATLAB Delay-And-Sum beamformer — the exact per-dataset reconstruction
|
| 116 |
+
used in the public USTB dataset catalog (https://unioslo.github.io/USTB/datasets.html), with
|
| 117 |
+
scanline transmit apodization for focused/sector acquisitions and correct sector-scan geometry.
|
| 118 |
+
These are the recommended reference reconstructions for visual verification.
|
| 119 |
+
|
| 120 |
+
## Known Issues
|
| 121 |
+
|
| 122 |
+
Single/few-frame acquisitions; focused linear imaging.
|
| 123 |
+
|
| 124 |
+
## Ethical Considerations
|
| 125 |
+
|
| 126 |
+
In-vivo data recorded from healthy adult volunteers at the University of Oslo with written informed consent for research use and data sharing, and approval from the Regional Committee for Medical and Health Research Ethics (REK), Norway. Files contain only RF channel data and acquisition parameters; no HHS Safe Harbor identifiers are present.
|
oslo/C_verasonics_phantom/README.md
CHANGED
|
@@ -1,137 +1,137 @@
|
|
| 1 |
-
---
|
| 2 |
-
pretty_name: "USTB - Phantom (Verasonics L7-4 / P4)"
|
| 3 |
-
license: cc-by-4.0
|
| 4 |
-
task_categories:
|
| 5 |
-
- image-to-image
|
| 6 |
-
language:
|
| 7 |
-
- en
|
| 8 |
-
tags:
|
| 9 |
-
- ultrasound
|
| 10 |
-
- rf
|
| 11 |
-
- openh-rf
|
| 12 |
-
- phantom
|
| 13 |
-
- cirs
|
| 14 |
-
size_categories:
|
| 15 |
-
- n<1K
|
| 16 |
-
---
|
| 17 |
-
|
| 18 |
-
# USTB - Phantom (Verasonics L7-4 / P4)
|
| 19 |
-
|
| 20 |
-
Part of the **UltraSound ToolBox (USTB) Channel Capture Collection** contributed to the
|
| 21 |
-
[OpenH-RF](https://github.com/open-h/OpenH-RF) initiative. All acquisitions are stored in the
|
| 22 |
-
*zea* HDF5 file format (zea_version 0.1.6) and contain raw pre-beamformed
|
| 23 |
-
channel data (`/data/raw_data`).
|
| 24 |
-
|
| 25 |
-
## Dataset Description
|
| 26 |
-
|
| 27 |
-
Tissue-mimicking and table-top phantom channel-capture data acquired on a Verasonics Vantage 256 with L7-4 linear and P4 phased-array probes. The collection spans coherent plane-wave compounding (CPWC), focused imaging (FI), synthetic transmit aperture (STA) and diverging-wave (DW) sequences for resolution, contrast, dynamic-range and point-spread-function evaluation, including CIRS tissue-mimicking phantom targets.
|
| 28 |
-
|
| 29 |
-
## Dataset Contributors
|
| 30 |
-
|
| 31 |
-
University of Oslo (UiO), Department of Informatics. Primary contact: Ole Marius Hoel Rindal (omrindal@ifi.uio.no). Team: Ole Marius Hoel Rindal, Yucel Karabiyik, Sven Peter Nasholm, Andreas Austeng.
|
| 32 |
-
|
| 33 |
-
## Dataset Creation Date
|
| 34 |
-
|
| 35 |
-
06/23/2026 (packaging date; original acquisitions/simulations were produced between 2016 and 2023).
|
| 36 |
-
|
| 37 |
-
## License / Terms of Use
|
| 38 |
-
|
| 39 |
-
Released under **Creative Commons Attribution 4.0 International (CC BY 4.0)** — see the `LICENCE`
|
| 40 |
-
file at the submission root (this license is also declared in the YAML frontmatter above). The
|
| 41 |
-
contributed data is cleared for this license. The UltraSound ToolBox (USTB) Channel Capture Collection, University of Oslo. Contributed to OpenH-RF. Zenodo record 20261898.
|
| 42 |
-
|
| 43 |
-
## Intended Usage
|
| 44 |
-
|
| 45 |
-
Generalized reconstruction, image-quality assessment (resolution, contrast, dynamic range), and beamforming research (RFP task 6.1). Several acquisitions provide multiple transmit schemes on the same target for cross-method comparison. (OpenH-RF RFP task 6.1 Generalized Reconstruction).
|
| 46 |
-
|
| 47 |
-
## Dataset Characterization
|
| 48 |
-
|
| 49 |
-
- **Data Collection Method:** phantom
|
| 50 |
-
- **Labeling Method:** Derived (known phantom geometry, e.g. CIRS Model 040GSE where applicable).
|
| 51 |
-
- **Acquisition system:** probe(s) L7-4, P4-1, P4-2;
|
| 52 |
-
element positions stored in `/probe/probe_geometry` (meters); center frequency, sampling
|
| 53 |
-
frequency and sound speed stored per acquisition in `/scan` (see per-sample feature table).
|
| 54 |
-
|
| 55 |
-
## Dataset Format
|
| 56 |
-
|
| 57 |
-
All acquisitions are stored in the **zea** HDF5 file format. Each `.hdf5` file is a single
|
| 58 |
-
acquisition with raw channel data `/data/raw_data` of shape
|
| 59 |
-
`(n_frames, n_tx, n_ax, n_el, n_ch)` and a fully populated `/scan` group describing the transmit
|
| 60 |
-
sequence (delays, focus distances, steering angles, apodization, timing). Data type: RF (n_ch=1).
|
| 61 |
-
No demodulation or decimation was applied during packaging beyond conversion from the USTB
|
| 62 |
-
Ultrasound File Format (UFF) to zea; RF data is demodulated inside the reconstruction pipeline.
|
| 63 |
-
|
| 64 |
-
## Dataset Quantification
|
| 65 |
-
|
| 66 |
-
**Current OpenH-RF release:** 15 HDF5 files; 1.06 GB (1,058,734,080 bytes) stored; root `zea_version` **0.1.6**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
|
| 67 |
-
|
| 68 |
-
- **Number of acquisitions:** 15
|
| 69 |
-
- **Total channel-capture frames:** 27
|
| 70 |
-
- **Train / validation / test split:** not predefined (research dataset).
|
| 71 |
-
- **Stored HDF5 size:** 1.06 GB (1,058,734,080 bytes).
|
| 72 |
-
|
| 73 |
-
Per-acquisition summary:
|
| 74 |
-
|
| 75 |
-
| Acquisition | frames | transmits | samples | elements | n_ch | fs (MHz) | fc (MHz) | size (MB) |
|
| 76 |
-
|---|---|---|---|---|---|---|---|---|
|
| 77 |
-
| `experimental_dynamic_range_phantom` | 1 | 128 | 3840 | 128 | 1 | 40.8 | 5.00 | 218.23 |
|
| 78 |
-
| `experimental_STAI_dynamic_range` | 1 | 128 | 1920 | 128 | 1 | 20.4 | 5.00 | 109.38 |
|
| 79 |
-
| `FI_P4_cysts_center` | 1 | 128 | 2048 | 64 | 1 | 10.9 | 2.72 | 22.09 |
|
| 80 |
-
| `FI_P4_point_scatterers` | 6 | 128 | 1792 | 64 | 1 | 10.9 | 2.72 | 115.74 |
|
| 81 |
-
| `L7_CPWC_193328` | 3 | 15 | 1920 | 128 | 1 | 20.8 | 5.20 | 27.00 |
|
| 82 |
-
| `L7_CPWC_TheGB` | 1 | 11 | 1920 | 128 | 1 | 20.8 | 5.00 | 4.39 |
|
| 83 |
-
| `L7_DW_TheGB` | 1 | 25 | 1920 | 128 | 1 | 20.8 | 5.21 | 8.13 |
|
| 84 |
-
| `L7_FI_IUS2018` | 1 | 128 | 1920 | 128 | 1 | 20.8 | 5.21 | 32.44 |
|
| 85 |
-
| `L7_FI_TheGB` | 1 | 128 | 1920 | 128 | 1 | 20.8 | 5.21 | 30.34 |
|
| 86 |
-
| `L7_FI_Verasonics` | 1 | 128 | 1920 | 128 | 1 | 20.8 | 5.21 | 110.23 |
|
| 87 |
-
| `L7_FI_Verasonics_CIRS` | 1 | 128 | 1920 | 128 | 1 | 20.8 | 5.21 | 109.90 |
|
| 88 |
-
| `L7_FI_Verasonics_CIRS_points` | 1 | 128 | 1920 | 128 | 1 | 20.8 | 5.21 | 110.23 |
|
| 89 |
-
| `L7_STA_TheGB` | 1 | 128 | 1920 | 128 | 1 | 20.8 | 5.00 | 28.97 |
|
| 90 |
-
| `P4_FI_121444_45mm_focus` | 6 | 128 | 1280 | 64 | 1 | 11.9 | 2.98 | 94.24 |
|
| 91 |
-
| `STAI_UFF_CIRS_phantom` | 1 | 128 | 2688 | 128 | 1 | 20.8 | 5.00 | 37.42 |
|
| 92 |
-
|
| 93 |
-
Per-sample feature table:
|
| 94 |
-
|
| 95 |
-
| Field | Shape | Dtype | Units | Description |
|
| 96 |
-
|---|---|---|---|---|
|
| 97 |
-
| `data/raw_data` | `(n_frames, n_tx, n_ax, n_el, n_ch)` | float32 | a.u. | Raw pre-beamformed RF channel data |
|
| 98 |
-
| `scan/sampling_frequency` | `scalar` | float32 | Hz | A/D sampling frequency |
|
| 99 |
-
| `scan/center_frequency` | `scalar` | float32 | Hz | Transmit pulse center frequency |
|
| 100 |
-
| `scan/demodulation_frequency` | `scalar` | float32 | Hz | Demodulation (carrier) frequency |
|
| 101 |
-
| `scan/sound_speed` | `scalar` | float32 | m/s | Assumed medium speed of sound |
|
| 102 |
-
| `scan/initial_times` | `(n_tx,)` | float32 | s | A/D start time per transmit |
|
| 103 |
-
| `scan/t0_delays` | `(n_tx, n_el)` | float32 | s | Per-element transmit fire times |
|
| 104 |
-
| `scan/tx_apodizations` | `(n_tx, n_el)` | float32 | - | Per-element transmit apodization |
|
| 105 |
-
| `scan/focus_distances` | `(n_tx,)` | float32 | m | Focus distance per transmit (0 = plane wave) |
|
| 106 |
-
| `scan/polar_angles` | `(n_tx,)` | float32 | rad | Transmit steering (polar) angle |
|
| 107 |
-
| `scan/transmit_origins` | `(n_tx, 3)` | float32 | m | Transmit beam origin (x, y, z) |
|
| 108 |
-
| `probe/probe_geometry` | `(n_el, 3)` | float32 | m | Element positions (x, y, z) |
|
| 109 |
-
|
| 110 |
-
## Subject Metadata
|
| 111 |
-
|
| 112 |
-
No human or animal subjects. Targets: CIRS tissue-mimicking phantoms and lab phantoms (wire/point targets, hypo/hyperechoic inclusions, dynamic-range targets). Probes: L7-4 (128 el.), P4 phased array.
|
| 113 |
-
|
| 114 |
-
## Data Validation
|
| 115 |
-
|
| 116 |
-
A Delay-And-Sum `zea.Pipeline` is provided in the **`pipeline.yaml` at the submission root** and
|
| 117 |
-
run by the single **`reconstruct.py` at the submission root**:
|
| 118 |
-
`cast -> demodulate -> delay-and-sum beamform -> envelope detect -> normalize -> log compress`
|
| 119 |
-
(RF is demodulated in-pipeline; IQ uses a baseband pipeline). The script is geometry-driven and
|
| 120 |
-
recurses into every sub-dataset folder; running `python reconstruct.py` from the root reconstructs
|
| 121 |
-
every `.hdf5` in the collection (or pass a folder-qualified path for a single acquisition) and writes
|
| 122 |
-
`<name>_zea_bmode.png` next to each file as a portable check that the recorded geometry and timing
|
| 123 |
-
are correct.
|
| 124 |
-
|
| 125 |
-
The reference B-mode images committed alongside the data (`<name>_bmode.png`) are produced with the
|
| 126 |
-
UltraSound ToolBox (USTB) MATLAB Delay-And-Sum beamformer — the exact per-dataset reconstruction
|
| 127 |
-
used in the public USTB dataset catalog (https://unioslo.github.io/USTB/datasets.html), with
|
| 128 |
-
scanline transmit apodization for focused/sector acquisitions and correct sector-scan geometry.
|
| 129 |
-
These are the recommended reference reconstructions for visual verification.
|
| 130 |
-
|
| 131 |
-
## Known Issues
|
| 132 |
-
|
| 133 |
-
Mixed transmit schemes across files (CPWC / FI / STA / DW). Single-frame acquisitions for most phantoms. The reference reconstruction uses a single B-mode pipeline; per-scheme tuning may improve image quality.
|
| 134 |
-
|
| 135 |
-
## Ethical Considerations
|
| 136 |
-
|
| 137 |
-
Phantom / table-top acquisitions; no human or animal subjects are involved. No ethical considerations beyond standard laboratory practice.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: "USTB - Phantom (Verasonics L7-4 / P4)"
|
| 3 |
+
license: cc-by-4.0
|
| 4 |
+
task_categories:
|
| 5 |
+
- image-to-image
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- ultrasound
|
| 10 |
+
- rf
|
| 11 |
+
- openh-rf
|
| 12 |
+
- phantom
|
| 13 |
+
- cirs
|
| 14 |
+
size_categories:
|
| 15 |
+
- n<1K
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# USTB - Phantom (Verasonics L7-4 / P4)
|
| 19 |
+
|
| 20 |
+
Part of the **UltraSound ToolBox (USTB) Channel Capture Collection** contributed to the
|
| 21 |
+
[OpenH-RF](https://github.com/open-h/OpenH-RF) initiative. All acquisitions are stored in the
|
| 22 |
+
*zea* HDF5 file format (zea_version 0.1.6) and contain raw pre-beamformed
|
| 23 |
+
channel data (`/data/raw_data`).
|
| 24 |
+
|
| 25 |
+
## Dataset Description
|
| 26 |
+
|
| 27 |
+
Tissue-mimicking and table-top phantom channel-capture data acquired on a Verasonics Vantage 256 with L7-4 linear and P4 phased-array probes. The collection spans coherent plane-wave compounding (CPWC), focused imaging (FI), synthetic transmit aperture (STA) and diverging-wave (DW) sequences for resolution, contrast, dynamic-range and point-spread-function evaluation, including CIRS tissue-mimicking phantom targets.
|
| 28 |
+
|
| 29 |
+
## Dataset Contributors
|
| 30 |
+
|
| 31 |
+
University of Oslo (UiO), Department of Informatics. Primary contact: Ole Marius Hoel Rindal (omrindal@ifi.uio.no). Team: Ole Marius Hoel Rindal, Yucel Karabiyik, Sven Peter Nasholm, Andreas Austeng.
|
| 32 |
+
|
| 33 |
+
## Dataset Creation Date
|
| 34 |
+
|
| 35 |
+
06/23/2026 (packaging date; original acquisitions/simulations were produced between 2016 and 2023).
|
| 36 |
+
|
| 37 |
+
## License / Terms of Use
|
| 38 |
+
|
| 39 |
+
Released under **Creative Commons Attribution 4.0 International (CC BY 4.0)** — see the `LICENCE`
|
| 40 |
+
file at the submission root (this license is also declared in the YAML frontmatter above). The
|
| 41 |
+
contributed data is cleared for this license. The UltraSound ToolBox (USTB) Channel Capture Collection, University of Oslo. Contributed to OpenH-RF. Zenodo record 20261898.
|
| 42 |
+
|
| 43 |
+
## Intended Usage
|
| 44 |
+
|
| 45 |
+
Generalized reconstruction, image-quality assessment (resolution, contrast, dynamic range), and beamforming research (RFP task 6.1). Several acquisitions provide multiple transmit schemes on the same target for cross-method comparison. (OpenH-RF RFP task 6.1 Generalized Reconstruction).
|
| 46 |
+
|
| 47 |
+
## Dataset Characterization
|
| 48 |
+
|
| 49 |
+
- **Data Collection Method:** phantom
|
| 50 |
+
- **Labeling Method:** Derived (known phantom geometry, e.g. CIRS Model 040GSE where applicable).
|
| 51 |
+
- **Acquisition system:** probe(s) L7-4, P4-1, P4-2;
|
| 52 |
+
element positions stored in `/probe/probe_geometry` (meters); center frequency, sampling
|
| 53 |
+
frequency and sound speed stored per acquisition in `/scan` (see per-sample feature table).
|
| 54 |
+
|
| 55 |
+
## Dataset Format
|
| 56 |
+
|
| 57 |
+
All acquisitions are stored in the **zea** HDF5 file format. Each `.hdf5` file is a single
|
| 58 |
+
acquisition with raw channel data `/data/raw_data` of shape
|
| 59 |
+
`(n_frames, n_tx, n_ax, n_el, n_ch)` and a fully populated `/scan` group describing the transmit
|
| 60 |
+
sequence (delays, focus distances, steering angles, apodization, timing). Data type: RF (n_ch=1).
|
| 61 |
+
No demodulation or decimation was applied during packaging beyond conversion from the USTB
|
| 62 |
+
Ultrasound File Format (UFF) to zea; RF data is demodulated inside the reconstruction pipeline.
|
| 63 |
+
|
| 64 |
+
## Dataset Quantification
|
| 65 |
+
|
| 66 |
+
**Current OpenH-RF release:** 15 HDF5 files; 1.06 GB (1,058,734,080 bytes) stored; root `zea_version` **0.1.6**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
|
| 67 |
+
|
| 68 |
+
- **Number of acquisitions:** 15
|
| 69 |
+
- **Total channel-capture frames:** 27
|
| 70 |
+
- **Train / validation / test split:** not predefined (research dataset).
|
| 71 |
+
- **Stored HDF5 size:** 1.06 GB (1,058,734,080 bytes).
|
| 72 |
+
|
| 73 |
+
Per-acquisition summary:
|
| 74 |
+
|
| 75 |
+
| Acquisition | frames | transmits | samples | elements | n_ch | fs (MHz) | fc (MHz) | size (MB) |
|
| 76 |
+
|---|---|---|---|---|---|---|---|---|
|
| 77 |
+
| `experimental_dynamic_range_phantom` | 1 | 128 | 3840 | 128 | 1 | 40.8 | 5.00 | 218.23 |
|
| 78 |
+
| `experimental_STAI_dynamic_range` | 1 | 128 | 1920 | 128 | 1 | 20.4 | 5.00 | 109.38 |
|
| 79 |
+
| `FI_P4_cysts_center` | 1 | 128 | 2048 | 64 | 1 | 10.9 | 2.72 | 22.09 |
|
| 80 |
+
| `FI_P4_point_scatterers` | 6 | 128 | 1792 | 64 | 1 | 10.9 | 2.72 | 115.74 |
|
| 81 |
+
| `L7_CPWC_193328` | 3 | 15 | 1920 | 128 | 1 | 20.8 | 5.20 | 27.00 |
|
| 82 |
+
| `L7_CPWC_TheGB` | 1 | 11 | 1920 | 128 | 1 | 20.8 | 5.00 | 4.39 |
|
| 83 |
+
| `L7_DW_TheGB` | 1 | 25 | 1920 | 128 | 1 | 20.8 | 5.21 | 8.13 |
|
| 84 |
+
| `L7_FI_IUS2018` | 1 | 128 | 1920 | 128 | 1 | 20.8 | 5.21 | 32.44 |
|
| 85 |
+
| `L7_FI_TheGB` | 1 | 128 | 1920 | 128 | 1 | 20.8 | 5.21 | 30.34 |
|
| 86 |
+
| `L7_FI_Verasonics` | 1 | 128 | 1920 | 128 | 1 | 20.8 | 5.21 | 110.23 |
|
| 87 |
+
| `L7_FI_Verasonics_CIRS` | 1 | 128 | 1920 | 128 | 1 | 20.8 | 5.21 | 109.90 |
|
| 88 |
+
| `L7_FI_Verasonics_CIRS_points` | 1 | 128 | 1920 | 128 | 1 | 20.8 | 5.21 | 110.23 |
|
| 89 |
+
| `L7_STA_TheGB` | 1 | 128 | 1920 | 128 | 1 | 20.8 | 5.00 | 28.97 |
|
| 90 |
+
| `P4_FI_121444_45mm_focus` | 6 | 128 | 1280 | 64 | 1 | 11.9 | 2.98 | 94.24 |
|
| 91 |
+
| `STAI_UFF_CIRS_phantom` | 1 | 128 | 2688 | 128 | 1 | 20.8 | 5.00 | 37.42 |
|
| 92 |
+
|
| 93 |
+
Per-sample feature table:
|
| 94 |
+
|
| 95 |
+
| Field | Shape | Dtype | Units | Description |
|
| 96 |
+
|---|---|---|---|---|
|
| 97 |
+
| `data/raw_data` | `(n_frames, n_tx, n_ax, n_el, n_ch)` | float32 | a.u. | Raw pre-beamformed RF channel data |
|
| 98 |
+
| `scan/sampling_frequency` | `scalar` | float32 | Hz | A/D sampling frequency |
|
| 99 |
+
| `scan/center_frequency` | `scalar` | float32 | Hz | Transmit pulse center frequency |
|
| 100 |
+
| `scan/demodulation_frequency` | `scalar` | float32 | Hz | Demodulation (carrier) frequency |
|
| 101 |
+
| `scan/sound_speed` | `scalar` | float32 | m/s | Assumed medium speed of sound |
|
| 102 |
+
| `scan/initial_times` | `(n_tx,)` | float32 | s | A/D start time per transmit |
|
| 103 |
+
| `scan/t0_delays` | `(n_tx, n_el)` | float32 | s | Per-element transmit fire times |
|
| 104 |
+
| `scan/tx_apodizations` | `(n_tx, n_el)` | float32 | - | Per-element transmit apodization |
|
| 105 |
+
| `scan/focus_distances` | `(n_tx,)` | float32 | m | Focus distance per transmit (0 = plane wave) |
|
| 106 |
+
| `scan/polar_angles` | `(n_tx,)` | float32 | rad | Transmit steering (polar) angle |
|
| 107 |
+
| `scan/transmit_origins` | `(n_tx, 3)` | float32 | m | Transmit beam origin (x, y, z) |
|
| 108 |
+
| `probe/probe_geometry` | `(n_el, 3)` | float32 | m | Element positions (x, y, z) |
|
| 109 |
+
|
| 110 |
+
## Subject Metadata
|
| 111 |
+
|
| 112 |
+
No human or animal subjects. Targets: CIRS tissue-mimicking phantoms and lab phantoms (wire/point targets, hypo/hyperechoic inclusions, dynamic-range targets). Probes: L7-4 (128 el.), P4 phased array.
|
| 113 |
+
|
| 114 |
+
## Data Validation
|
| 115 |
+
|
| 116 |
+
A Delay-And-Sum `zea.Pipeline` is provided in the **`pipeline.yaml` at the submission root** and
|
| 117 |
+
run by the single **`reconstruct.py` at the submission root**:
|
| 118 |
+
`cast -> demodulate -> delay-and-sum beamform -> envelope detect -> normalize -> log compress`
|
| 119 |
+
(RF is demodulated in-pipeline; IQ uses a baseband pipeline). The script is geometry-driven and
|
| 120 |
+
recurses into every sub-dataset folder; running `python reconstruct.py` from the root reconstructs
|
| 121 |
+
every `.hdf5` in the collection (or pass a folder-qualified path for a single acquisition) and writes
|
| 122 |
+
`<name>_zea_bmode.png` next to each file as a portable check that the recorded geometry and timing
|
| 123 |
+
are correct.
|
| 124 |
+
|
| 125 |
+
The reference B-mode images committed alongside the data (`<name>_bmode.png`) are produced with the
|
| 126 |
+
UltraSound ToolBox (USTB) MATLAB Delay-And-Sum beamformer — the exact per-dataset reconstruction
|
| 127 |
+
used in the public USTB dataset catalog (https://unioslo.github.io/USTB/datasets.html), with
|
| 128 |
+
scanline transmit apodization for focused/sector acquisitions and correct sector-scan geometry.
|
| 129 |
+
These are the recommended reference reconstructions for visual verification.
|
| 130 |
+
|
| 131 |
+
## Known Issues
|
| 132 |
+
|
| 133 |
+
Mixed transmit schemes across files (CPWC / FI / STA / DW). Single-frame acquisitions for most phantoms. The reference reconstruction uses a single B-mode pipeline; per-scheme tuning may improve image quality.
|
| 134 |
+
|
| 135 |
+
## Ethical Considerations
|
| 136 |
+
|
| 137 |
+
Phantom / table-top acquisitions; no human or animal subjects are involved. No ethical considerations beyond standard laboratory practice.
|
oslo/D_alpinion_phantom/README.md
CHANGED
|
@@ -1,126 +1,126 @@
|
|
| 1 |
-
---
|
| 2 |
-
pretty_name: "USTB - Phantom (Alpinion L3-8)"
|
| 3 |
-
license: cc-by-4.0
|
| 4 |
-
task_categories:
|
| 5 |
-
- image-to-image
|
| 6 |
-
language:
|
| 7 |
-
- en
|
| 8 |
-
tags:
|
| 9 |
-
- ultrasound
|
| 10 |
-
- rf
|
| 11 |
-
- openh-rf
|
| 12 |
-
- phantom
|
| 13 |
-
- alpinion
|
| 14 |
-
size_categories:
|
| 15 |
-
- n<1K
|
| 16 |
-
---
|
| 17 |
-
|
| 18 |
-
# USTB - Phantom (Alpinion L3-8)
|
| 19 |
-
|
| 20 |
-
Part of the **UltraSound ToolBox (USTB) Channel Capture Collection** contributed to the
|
| 21 |
-
[OpenH-RF](https://github.com/open-h/OpenH-RF) initiative. All acquisitions are stored in the
|
| 22 |
-
*zea* HDF5 file format (zea_version 0.1.6) and contain raw pre-beamformed
|
| 23 |
-
channel data (`/data/raw_data`).
|
| 24 |
-
|
| 25 |
-
## Dataset Description
|
| 26 |
-
|
| 27 |
-
Phantom channel-capture data acquired on an Alpinion E-Cube 12R research scanner with an L3-8 linear-array probe. Hypoechoic and hyperechoic targets imaged with focused (FI) and coherent plane-wave compounding (CPWC) sequences.
|
| 28 |
-
|
| 29 |
-
## Dataset Contributors
|
| 30 |
-
|
| 31 |
-
University of Oslo (UiO), Department of Informatics. Primary contact: Ole Marius Hoel Rindal (omrindal@ifi.uio.no). Team: Ole Marius Hoel Rindal, Yucel Karabiyik, Sven Peter Nasholm, Andreas Austeng.
|
| 32 |
-
|
| 33 |
-
## Dataset Creation Date
|
| 34 |
-
|
| 35 |
-
06/23/2026 (packaging date; original acquisitions/simulations were produced between 2016 and 2023).
|
| 36 |
-
|
| 37 |
-
## License / Terms of Use
|
| 38 |
-
|
| 39 |
-
Released under **Creative Commons Attribution 4.0 International (CC BY 4.0)** — see the `LICENCE`
|
| 40 |
-
file at the submission root (this license is also declared in the YAML frontmatter above). The
|
| 41 |
-
contributed data is cleared for this license. The UltraSound ToolBox (USTB) Channel Capture Collection, University of Oslo. Contributed to OpenH-RF. Zenodo record 20261898.
|
| 42 |
-
|
| 43 |
-
## Intended Usage
|
| 44 |
-
|
| 45 |
-
Generalized reconstruction and image-quality assessment on a second hardware platform (RFP task 6.1); cross-vendor robustness studies. (OpenH-RF RFP task 6.1 Generalized Reconstruction).
|
| 46 |
-
|
| 47 |
-
## Dataset Characterization
|
| 48 |
-
|
| 49 |
-
- **Data Collection Method:** phantom
|
| 50 |
-
- **Labeling Method:** Derived (known phantom target types).
|
| 51 |
-
- **Acquisition system:** probe(s) L3-8;
|
| 52 |
-
element positions stored in `/probe/probe_geometry` (meters); center frequency, sampling
|
| 53 |
-
frequency and sound speed stored per acquisition in `/scan` (see per-sample feature table).
|
| 54 |
-
|
| 55 |
-
## Dataset Format
|
| 56 |
-
|
| 57 |
-
All acquisitions are stored in the **zea** HDF5 file format. Each `.hdf5` file is a single
|
| 58 |
-
acquisition with raw channel data `/data/raw_data` of shape
|
| 59 |
-
`(n_frames, n_tx, n_ax, n_el, n_ch)` and a fully populated `/scan` group describing the transmit
|
| 60 |
-
sequence (delays, focus distances, steering angles, apodization, timing). Data type: RF (n_ch=1).
|
| 61 |
-
No demodulation or decimation was applied during packaging beyond conversion from the USTB
|
| 62 |
-
Ultrasound File Format (UFF) to zea; RF data is demodulated inside the reconstruction pipeline.
|
| 63 |
-
|
| 64 |
-
## Dataset Quantification
|
| 65 |
-
|
| 66 |
-
**Current OpenH-RF release:** 4 HDF5 files; 466.42 MB (466,419,712 bytes) stored; root `zea_version` **0.1.6**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
|
| 67 |
-
|
| 68 |
-
- **Number of acquisitions:** 4
|
| 69 |
-
- **Total channel-capture frames:** 4
|
| 70 |
-
- **Train / validation / test split:** not predefined (research dataset).
|
| 71 |
-
- **Stored HDF5 size:** 466.42 MB (466,419,712 bytes).
|
| 72 |
-
|
| 73 |
-
Per-acquisition summary:
|
| 74 |
-
|
| 75 |
-
| Acquisition | frames | transmits | samples | elements | n_ch | fs (MHz) | fc (MHz) | size (MB) |
|
| 76 |
-
|---|---|---|---|---|---|---|---|---|
|
| 77 |
-
| `Alpinion_L3-8_CPWC_hyperechoic_scatterers` | 1 | 21 | 4352 | 128 | 1 | 40.0 | 6.00 | 40.89 |
|
| 78 |
-
| `Alpinion_L3-8_CPWC_hypoechoic` | 1 | 21 | 4352 | 128 | 1 | 40.0 | 6.00 | 40.96 |
|
| 79 |
-
| `Alpinion_L3-8_FI_hyperechoic_scatterers` | 1 | 256 | 3474 | 128 | 1 | 40.0 | 6.00 | 192.35 |
|
| 80 |
-
| `Alpinion_L3-8_FI_hypoechoic` | 1 | 256 | 3474 | 128 | 1 | 40.0 | 6.00 | 192.22 |
|
| 81 |
-
|
| 82 |
-
Per-sample feature table:
|
| 83 |
-
|
| 84 |
-
| Field | Shape | Dtype | Units | Description |
|
| 85 |
-
|---|---|---|---|---|
|
| 86 |
-
| `data/raw_data` | `(n_frames, n_tx, n_ax, n_el, n_ch)` | float32 | a.u. | Raw pre-beamformed RF channel data |
|
| 87 |
-
| `scan/sampling_frequency` | `scalar` | float32 | Hz | A/D sampling frequency |
|
| 88 |
-
| `scan/center_frequency` | `scalar` | float32 | Hz | Transmit pulse center frequency |
|
| 89 |
-
| `scan/demodulation_frequency` | `scalar` | float32 | Hz | Demodulation (carrier) frequency |
|
| 90 |
-
| `scan/sound_speed` | `scalar` | float32 | m/s | Assumed medium speed of sound |
|
| 91 |
-
| `scan/initial_times` | `(n_tx,)` | float32 | s | A/D start time per transmit |
|
| 92 |
-
| `scan/t0_delays` | `(n_tx, n_el)` | float32 | s | Per-element transmit fire times |
|
| 93 |
-
| `scan/tx_apodizations` | `(n_tx, n_el)` | float32 | - | Per-element transmit apodization |
|
| 94 |
-
| `scan/focus_distances` | `(n_tx,)` | float32 | m | Focus distance per transmit (0 = plane wave) |
|
| 95 |
-
| `scan/polar_angles` | `(n_tx,)` | float32 | rad | Transmit steering (polar) angle |
|
| 96 |
-
| `scan/transmit_origins` | `(n_tx, 3)` | float32 | m | Transmit beam origin (x, y, z) |
|
| 97 |
-
| `probe/probe_geometry` | `(n_el, 3)` | float32 | m | Element positions (x, y, z) |
|
| 98 |
-
|
| 99 |
-
## Subject Metadata
|
| 100 |
-
|
| 101 |
-
No human or animal subjects. Targets: hypoechoic/hyperechoic phantom inclusions. Scanner: Alpinion E-Cube 12R. Probe: L3-8 linear array (128 elements).
|
| 102 |
-
|
| 103 |
-
## Data Validation
|
| 104 |
-
|
| 105 |
-
A Delay-And-Sum `zea.Pipeline` is provided in the **`pipeline.yaml` at the submission root** and
|
| 106 |
-
run by the single **`reconstruct.py` at the submission root**:
|
| 107 |
-
`cast -> demodulate -> delay-and-sum beamform -> envelope detect -> normalize -> log compress`
|
| 108 |
-
(RF is demodulated in-pipeline; IQ uses a baseband pipeline). The script is geometry-driven and
|
| 109 |
-
recurses into every sub-dataset folder; running `python reconstruct.py` from the root reconstructs
|
| 110 |
-
every `.hdf5` in the collection (or pass a folder-qualified path for a single acquisition) and writes
|
| 111 |
-
`<name>_zea_bmode.png` next to each file as a portable check that the recorded geometry and timing
|
| 112 |
-
are correct.
|
| 113 |
-
|
| 114 |
-
The reference B-mode images committed alongside the data (`<name>_bmode.png`) are produced with the
|
| 115 |
-
UltraSound ToolBox (USTB) MATLAB Delay-And-Sum beamformer — the exact per-dataset reconstruction
|
| 116 |
-
used in the public USTB dataset catalog (https://unioslo.github.io/USTB/datasets.html), with
|
| 117 |
-
scanline transmit apodization for focused/sector acquisitions and correct sector-scan geometry.
|
| 118 |
-
These are the recommended reference reconstructions for visual verification.
|
| 119 |
-
|
| 120 |
-
## Known Issues
|
| 121 |
-
|
| 122 |
-
Single-frame acquisitions; two transmit schemes (FI, CPWC).
|
| 123 |
-
|
| 124 |
-
## Ethical Considerations
|
| 125 |
-
|
| 126 |
-
Phantom acquisitions; no human or animal subjects. No ethical considerations beyond standard laboratory practice.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: "USTB - Phantom (Alpinion L3-8)"
|
| 3 |
+
license: cc-by-4.0
|
| 4 |
+
task_categories:
|
| 5 |
+
- image-to-image
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- ultrasound
|
| 10 |
+
- rf
|
| 11 |
+
- openh-rf
|
| 12 |
+
- phantom
|
| 13 |
+
- alpinion
|
| 14 |
+
size_categories:
|
| 15 |
+
- n<1K
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# USTB - Phantom (Alpinion L3-8)
|
| 19 |
+
|
| 20 |
+
Part of the **UltraSound ToolBox (USTB) Channel Capture Collection** contributed to the
|
| 21 |
+
[OpenH-RF](https://github.com/open-h/OpenH-RF) initiative. All acquisitions are stored in the
|
| 22 |
+
*zea* HDF5 file format (zea_version 0.1.6) and contain raw pre-beamformed
|
| 23 |
+
channel data (`/data/raw_data`).
|
| 24 |
+
|
| 25 |
+
## Dataset Description
|
| 26 |
+
|
| 27 |
+
Phantom channel-capture data acquired on an Alpinion E-Cube 12R research scanner with an L3-8 linear-array probe. Hypoechoic and hyperechoic targets imaged with focused (FI) and coherent plane-wave compounding (CPWC) sequences.
|
| 28 |
+
|
| 29 |
+
## Dataset Contributors
|
| 30 |
+
|
| 31 |
+
University of Oslo (UiO), Department of Informatics. Primary contact: Ole Marius Hoel Rindal (omrindal@ifi.uio.no). Team: Ole Marius Hoel Rindal, Yucel Karabiyik, Sven Peter Nasholm, Andreas Austeng.
|
| 32 |
+
|
| 33 |
+
## Dataset Creation Date
|
| 34 |
+
|
| 35 |
+
06/23/2026 (packaging date; original acquisitions/simulations were produced between 2016 and 2023).
|
| 36 |
+
|
| 37 |
+
## License / Terms of Use
|
| 38 |
+
|
| 39 |
+
Released under **Creative Commons Attribution 4.0 International (CC BY 4.0)** — see the `LICENCE`
|
| 40 |
+
file at the submission root (this license is also declared in the YAML frontmatter above). The
|
| 41 |
+
contributed data is cleared for this license. The UltraSound ToolBox (USTB) Channel Capture Collection, University of Oslo. Contributed to OpenH-RF. Zenodo record 20261898.
|
| 42 |
+
|
| 43 |
+
## Intended Usage
|
| 44 |
+
|
| 45 |
+
Generalized reconstruction and image-quality assessment on a second hardware platform (RFP task 6.1); cross-vendor robustness studies. (OpenH-RF RFP task 6.1 Generalized Reconstruction).
|
| 46 |
+
|
| 47 |
+
## Dataset Characterization
|
| 48 |
+
|
| 49 |
+
- **Data Collection Method:** phantom
|
| 50 |
+
- **Labeling Method:** Derived (known phantom target types).
|
| 51 |
+
- **Acquisition system:** probe(s) L3-8;
|
| 52 |
+
element positions stored in `/probe/probe_geometry` (meters); center frequency, sampling
|
| 53 |
+
frequency and sound speed stored per acquisition in `/scan` (see per-sample feature table).
|
| 54 |
+
|
| 55 |
+
## Dataset Format
|
| 56 |
+
|
| 57 |
+
All acquisitions are stored in the **zea** HDF5 file format. Each `.hdf5` file is a single
|
| 58 |
+
acquisition with raw channel data `/data/raw_data` of shape
|
| 59 |
+
`(n_frames, n_tx, n_ax, n_el, n_ch)` and a fully populated `/scan` group describing the transmit
|
| 60 |
+
sequence (delays, focus distances, steering angles, apodization, timing). Data type: RF (n_ch=1).
|
| 61 |
+
No demodulation or decimation was applied during packaging beyond conversion from the USTB
|
| 62 |
+
Ultrasound File Format (UFF) to zea; RF data is demodulated inside the reconstruction pipeline.
|
| 63 |
+
|
| 64 |
+
## Dataset Quantification
|
| 65 |
+
|
| 66 |
+
**Current OpenH-RF release:** 4 HDF5 files; 466.42 MB (466,419,712 bytes) stored; root `zea_version` **0.1.6**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
|
| 67 |
+
|
| 68 |
+
- **Number of acquisitions:** 4
|
| 69 |
+
- **Total channel-capture frames:** 4
|
| 70 |
+
- **Train / validation / test split:** not predefined (research dataset).
|
| 71 |
+
- **Stored HDF5 size:** 466.42 MB (466,419,712 bytes).
|
| 72 |
+
|
| 73 |
+
Per-acquisition summary:
|
| 74 |
+
|
| 75 |
+
| Acquisition | frames | transmits | samples | elements | n_ch | fs (MHz) | fc (MHz) | size (MB) |
|
| 76 |
+
|---|---|---|---|---|---|---|---|---|
|
| 77 |
+
| `Alpinion_L3-8_CPWC_hyperechoic_scatterers` | 1 | 21 | 4352 | 128 | 1 | 40.0 | 6.00 | 40.89 |
|
| 78 |
+
| `Alpinion_L3-8_CPWC_hypoechoic` | 1 | 21 | 4352 | 128 | 1 | 40.0 | 6.00 | 40.96 |
|
| 79 |
+
| `Alpinion_L3-8_FI_hyperechoic_scatterers` | 1 | 256 | 3474 | 128 | 1 | 40.0 | 6.00 | 192.35 |
|
| 80 |
+
| `Alpinion_L3-8_FI_hypoechoic` | 1 | 256 | 3474 | 128 | 1 | 40.0 | 6.00 | 192.22 |
|
| 81 |
+
|
| 82 |
+
Per-sample feature table:
|
| 83 |
+
|
| 84 |
+
| Field | Shape | Dtype | Units | Description |
|
| 85 |
+
|---|---|---|---|---|
|
| 86 |
+
| `data/raw_data` | `(n_frames, n_tx, n_ax, n_el, n_ch)` | float32 | a.u. | Raw pre-beamformed RF channel data |
|
| 87 |
+
| `scan/sampling_frequency` | `scalar` | float32 | Hz | A/D sampling frequency |
|
| 88 |
+
| `scan/center_frequency` | `scalar` | float32 | Hz | Transmit pulse center frequency |
|
| 89 |
+
| `scan/demodulation_frequency` | `scalar` | float32 | Hz | Demodulation (carrier) frequency |
|
| 90 |
+
| `scan/sound_speed` | `scalar` | float32 | m/s | Assumed medium speed of sound |
|
| 91 |
+
| `scan/initial_times` | `(n_tx,)` | float32 | s | A/D start time per transmit |
|
| 92 |
+
| `scan/t0_delays` | `(n_tx, n_el)` | float32 | s | Per-element transmit fire times |
|
| 93 |
+
| `scan/tx_apodizations` | `(n_tx, n_el)` | float32 | - | Per-element transmit apodization |
|
| 94 |
+
| `scan/focus_distances` | `(n_tx,)` | float32 | m | Focus distance per transmit (0 = plane wave) |
|
| 95 |
+
| `scan/polar_angles` | `(n_tx,)` | float32 | rad | Transmit steering (polar) angle |
|
| 96 |
+
| `scan/transmit_origins` | `(n_tx, 3)` | float32 | m | Transmit beam origin (x, y, z) |
|
| 97 |
+
| `probe/probe_geometry` | `(n_el, 3)` | float32 | m | Element positions (x, y, z) |
|
| 98 |
+
|
| 99 |
+
## Subject Metadata
|
| 100 |
+
|
| 101 |
+
No human or animal subjects. Targets: hypoechoic/hyperechoic phantom inclusions. Scanner: Alpinion E-Cube 12R. Probe: L3-8 linear array (128 elements).
|
| 102 |
+
|
| 103 |
+
## Data Validation
|
| 104 |
+
|
| 105 |
+
A Delay-And-Sum `zea.Pipeline` is provided in the **`pipeline.yaml` at the submission root** and
|
| 106 |
+
run by the single **`reconstruct.py` at the submission root**:
|
| 107 |
+
`cast -> demodulate -> delay-and-sum beamform -> envelope detect -> normalize -> log compress`
|
| 108 |
+
(RF is demodulated in-pipeline; IQ uses a baseband pipeline). The script is geometry-driven and
|
| 109 |
+
recurses into every sub-dataset folder; running `python reconstruct.py` from the root reconstructs
|
| 110 |
+
every `.hdf5` in the collection (or pass a folder-qualified path for a single acquisition) and writes
|
| 111 |
+
`<name>_zea_bmode.png` next to each file as a portable check that the recorded geometry and timing
|
| 112 |
+
are correct.
|
| 113 |
+
|
| 114 |
+
The reference B-mode images committed alongside the data (`<name>_bmode.png`) are produced with the
|
| 115 |
+
UltraSound ToolBox (USTB) MATLAB Delay-And-Sum beamformer — the exact per-dataset reconstruction
|
| 116 |
+
used in the public USTB dataset catalog (https://unioslo.github.io/USTB/datasets.html), with
|
| 117 |
+
scanline transmit apodization for focused/sector acquisitions and correct sector-scan geometry.
|
| 118 |
+
These are the recommended reference reconstructions for visual verification.
|
| 119 |
+
|
| 120 |
+
## Known Issues
|
| 121 |
+
|
| 122 |
+
Single-frame acquisitions; two transmit schemes (FI, CPWC).
|
| 123 |
+
|
| 124 |
+
## Ethical Considerations
|
| 125 |
+
|
| 126 |
+
Phantom acquisitions; no human or animal subjects. No ethical considerations beyond standard laboratory practice.
|
oslo/E_simulation/README.md
CHANGED
|
@@ -1,134 +1,134 @@
|
|
| 1 |
-
---
|
| 2 |
-
pretty_name: "USTB - Simulation (Field II)"
|
| 3 |
-
license: cc-by-4.0
|
| 4 |
-
task_categories:
|
| 5 |
-
- image-to-image
|
| 6 |
-
language:
|
| 7 |
-
- en
|
| 8 |
-
tags:
|
| 9 |
-
- ultrasound
|
| 10 |
-
- rf
|
| 11 |
-
- openh-rf
|
| 12 |
-
- simulation
|
| 13 |
-
- field-ii
|
| 14 |
-
- synthetic
|
| 15 |
-
size_categories:
|
| 16 |
-
- n<1K
|
| 17 |
-
---
|
| 18 |
-
|
| 19 |
-
# USTB - Simulation (Field II)
|
| 20 |
-
|
| 21 |
-
Part of the **UltraSound ToolBox (USTB) Channel Capture Collection** contributed to the
|
| 22 |
-
[OpenH-RF](https://github.com/open-h/OpenH-RF) initiative. All acquisitions are stored in the
|
| 23 |
-
*zea* HDF5 file format (zea_version 0.1.6) and contain raw pre-beamformed
|
| 24 |
-
channel data (`/data/raw_data`).
|
| 25 |
-
|
| 26 |
-
## Dataset Description
|
| 27 |
-
|
| 28 |
-
Physics-based synthetic channel-capture data generated with the Field II ultrasound simulation framework. The collection covers point scatterers, cysts, speckle, dynamic-range targets and blocked-array (aperture-apodized) configurations, using linear (L7-4-like) and phased (P4-like) virtual probes with CPWC, FI and STA sequences. Because the scattering medium is fully defined, exact ground-truth scatterer positions and medium parameters are known. One numerical calibration acquisition (PICMUS_numerical_calib_v2) was created in collaboration with our group as part of the PICMUS effort; it is included here while the other PICMUS datasets are excluded (see Known Issues).
|
| 29 |
-
|
| 30 |
-
## Dataset Contributors
|
| 31 |
-
|
| 32 |
-
University of Oslo (UiO), Department of Informatics. Primary contact: Ole Marius Hoel Rindal (omrindal@ifi.uio.no). Team: Ole Marius Hoel Rindal, Yucel Karabiyik, Sven Peter Nasholm, Andreas Austeng.
|
| 33 |
-
|
| 34 |
-
## Dataset Creation Date
|
| 35 |
-
|
| 36 |
-
06/23/2026 (packaging date; original acquisitions/simulations were produced between 2016 and 2023).
|
| 37 |
-
|
| 38 |
-
## License / Terms of Use
|
| 39 |
-
|
| 40 |
-
Released under **Creative Commons Attribution 4.0 International (CC BY 4.0)** — see the `LICENCE`
|
| 41 |
-
file at the submission root (this license is also declared in the YAML frontmatter above). The
|
| 42 |
-
contributed data is cleared for this license. The UltraSound ToolBox (USTB) Channel Capture Collection, University of Oslo. Contributed to OpenH-RF. Zenodo record 20261898.
|
| 43 |
-
|
| 44 |
-
## Intended Usage
|
| 45 |
-
|
| 46 |
-
Generalized reconstruction, beamformer development and validation with known ground truth (RFP task 6.1); resolution/contrast/dynamic-range characterization; training/validation of learned reconstruction methods. (OpenH-RF RFP task 6.1 Generalized Reconstruction).
|
| 47 |
-
|
| 48 |
-
## Dataset Characterization
|
| 49 |
-
|
| 50 |
-
- **Data Collection Method:** synthetic
|
| 51 |
-
- **Labeling Method:** Synthetic ground truth (known scatterer positions and medium parameters).
|
| 52 |
-
- **Acquisition system:** probe(s) L7-4, P4-1;
|
| 53 |
-
element positions stored in `/probe/probe_geometry` (meters); center frequency, sampling
|
| 54 |
-
frequency and sound speed stored per acquisition in `/scan` (see per-sample feature table).
|
| 55 |
-
|
| 56 |
-
## Dataset Format
|
| 57 |
-
|
| 58 |
-
All acquisitions are stored in the **zea** HDF5 file format. Each `.hdf5` file is a single
|
| 59 |
-
acquisition with raw channel data `/data/raw_data` of shape
|
| 60 |
-
`(n_frames, n_tx, n_ax, n_el, n_ch)` and a fully populated `/scan` group describing the transmit
|
| 61 |
-
sequence (delays, focus distances, steering angles, apodization, timing). Data type: RF/IQ (n_ch in [1, 2]).
|
| 62 |
-
No demodulation or decimation was applied during packaging beyond conversion from the USTB
|
| 63 |
-
Ultrasound File Format (UFF) to zea; RF data is demodulated inside the reconstruction pipeline.
|
| 64 |
-
|
| 65 |
-
## Dataset Quantification
|
| 66 |
-
|
| 67 |
-
**Current OpenH-RF release:** 11 HDF5 files; 2.98 GB (2,980,642,816 bytes) stored; root `zea_version` **0.1.6**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
|
| 68 |
-
|
| 69 |
-
- **Number of acquisitions:** 11
|
| 70 |
-
- **Total channel-capture frames:** 17
|
| 71 |
-
- **Train / validation / test split:** not predefined (research dataset).
|
| 72 |
-
- **Stored HDF5 size:** 2.98 GB (2,980,642,816 bytes).
|
| 73 |
-
|
| 74 |
-
Per-acquisition summary:
|
| 75 |
-
|
| 76 |
-
| Acquisition | frames | transmits | samples | elements | n_ch | fs (MHz) | fc (MHz) | size (MB) |
|
| 77 |
-
|---|---|---|---|---|---|---|---|---|
|
| 78 |
-
| `FieldII_CPWC_point_scatterers_res_v2` | 7 | 1 | 7792 | 128 | 1 | 100.0 | 5.16 | 2.10 |
|
| 79 |
-
| `FieldII_CPWC_simulation_v2` | 1 | 1 | 6494 | 128 | 1 | 100.0 | 5.13 | 0.92 |
|
| 80 |
-
| `FieldII_P4_point_scatterers` | 1 | 128 | 14349 | 64 | 1 | 100.0 | 2.56 | 406.13 |
|
| 81 |
-
| `FieldII_speckle_DMASsimulation300000pts` | 1 | 96 | 10570 | 128 | 1 | 100.0 | 3.50 | 200.67 |
|
| 82 |
-
| `FieldII_STAI_dynamic_range` | 1 | 128 | 7792 | 128 | 1 | 100.0 | 5.13 | 355.40 |
|
| 83 |
-
| `FieldII_STAI_simulated_dynamic_range` | 1 | 128 | 7792 | 128 | 1 | 100.0 | 5.13 | 347.60 |
|
| 84 |
-
| `FieldII_STAI_uniform_fov` | 1 | 128 | 2771 | 128 | 1 | 25.0 | 5.13 | 125.57 |
|
| 85 |
-
| `PICMUS_numerical_calib_v2` | 1 | 5 | 445 | 128 | 2 | 5.2 | 5.21 | 2.16 |
|
| 86 |
-
| `speckle_sim_FI_P4_probe_apod_1_speckle_long_many_angles` | 1 | 150 | 15786 | 64 | 1 | 100.0 | 2.56 | 506.40 |
|
| 87 |
-
| `speckle_sim_FI_P4_probe_apod_2_speckle_long_many_angles` | 1 | 150 | 15786 | 64 | 1 | 100.0 | 2.56 | 512.49 |
|
| 88 |
-
| `speckle_sim_FI_P4_probe_apod_3_speckle_long_many_angles` | 1 | 150 | 15786 | 64 | 1 | 100.0 | 2.56 | 521.21 |
|
| 89 |
-
|
| 90 |
-
Per-sample feature table:
|
| 91 |
-
|
| 92 |
-
| Field | Shape | Dtype | Units | Description |
|
| 93 |
-
|---|---|---|---|---|
|
| 94 |
-
| `data/raw_data` | `(n_frames, n_tx, n_ax, n_el, n_ch)` | float32 | a.u. | Raw pre-beamformed RF channel data |
|
| 95 |
-
| `scan/sampling_frequency` | `scalar` | float32 | Hz | A/D sampling frequency |
|
| 96 |
-
| `scan/center_frequency` | `scalar` | float32 | Hz | Transmit pulse center frequency |
|
| 97 |
-
| `scan/demodulation_frequency` | `scalar` | float32 | Hz | Demodulation (carrier) frequency |
|
| 98 |
-
| `scan/sound_speed` | `scalar` | float32 | m/s | Assumed medium speed of sound |
|
| 99 |
-
| `scan/initial_times` | `(n_tx,)` | float32 | s | A/D start time per transmit |
|
| 100 |
-
| `scan/t0_delays` | `(n_tx, n_el)` | float32 | s | Per-element transmit fire times |
|
| 101 |
-
| `scan/tx_apodizations` | `(n_tx, n_el)` | float32 | - | Per-element transmit apodization |
|
| 102 |
-
| `scan/focus_distances` | `(n_tx,)` | float32 | m | Focus distance per transmit (0 = plane wave) |
|
| 103 |
-
| `scan/polar_angles` | `(n_tx,)` | float32 | rad | Transmit steering (polar) angle |
|
| 104 |
-
| `scan/transmit_origins` | `(n_tx, 3)` | float32 | m | Transmit beam origin (x, y, z) |
|
| 105 |
-
| `probe/probe_geometry` | `(n_el, 3)` | float32 | m | Element positions (x, y, z) |
|
| 106 |
-
|
| 107 |
-
## Subject Metadata
|
| 108 |
-
|
| 109 |
-
No human or animal subjects. Synthetic media simulated with Field II. Virtual probes: L7-4-like linear and P4-like phased arrays.
|
| 110 |
-
|
| 111 |
-
## Data Validation
|
| 112 |
-
|
| 113 |
-
A Delay-And-Sum `zea.Pipeline` is provided in the **`pipeline.yaml` at the submission root** and
|
| 114 |
-
run by the single **`reconstruct.py` at the submission root**:
|
| 115 |
-
`cast -> demodulate -> delay-and-sum beamform -> envelope detect -> normalize -> log compress`
|
| 116 |
-
(RF is demodulated in-pipeline; IQ uses a baseband pipeline). The script is geometry-driven and
|
| 117 |
-
recurses into every sub-dataset folder; running `python reconstruct.py` from the root reconstructs
|
| 118 |
-
every `.hdf5` in the collection (or pass a folder-qualified path for a single acquisition) and writes
|
| 119 |
-
`<name>_zea_bmode.png` next to each file as a portable check that the recorded geometry and timing
|
| 120 |
-
are correct.
|
| 121 |
-
|
| 122 |
-
The reference B-mode images committed alongside the data (`<name>_bmode.png`) are produced with the
|
| 123 |
-
UltraSound ToolBox (USTB) MATLAB Delay-And-Sum beamformer — the exact per-dataset reconstruction
|
| 124 |
-
used in the public USTB dataset catalog (https://unioslo.github.io/USTB/datasets.html), with
|
| 125 |
-
scanline transmit apodization for focused/sector acquisitions and correct sector-scan geometry.
|
| 126 |
-
These are the recommended reference reconstructions for visual verification.
|
| 127 |
-
|
| 128 |
-
## Known Issues
|
| 129 |
-
|
| 130 |
-
PICMUS calibration: 'PICMUS_numerical_calib_v2' was created in collaboration with our group as part of the PICMUS (Plane-wave Imaging Challenge in Medical UltraSound, IEEE IUS 2016) effort, and is therefore included here. The other PICMUS acquisitions (in-vivo carotid, experimental and simulated resolution/contrast) are deliberately excluded from this submission. Simulation framework: Field II (Jensen et al.).
|
| 131 |
-
|
| 132 |
-
## Ethical Considerations
|
| 133 |
-
|
| 134 |
-
Fully synthetic data generated with the Field II simulation framework; no human or animal subjects. No personal data is present. The included numerical calibration file was produced in collaboration with our group as part of the PICMUS effort (IEEE IUS 2016) and is released here under CC BY 4.0.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: "USTB - Simulation (Field II)"
|
| 3 |
+
license: cc-by-4.0
|
| 4 |
+
task_categories:
|
| 5 |
+
- image-to-image
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- ultrasound
|
| 10 |
+
- rf
|
| 11 |
+
- openh-rf
|
| 12 |
+
- simulation
|
| 13 |
+
- field-ii
|
| 14 |
+
- synthetic
|
| 15 |
+
size_categories:
|
| 16 |
+
- n<1K
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# USTB - Simulation (Field II)
|
| 20 |
+
|
| 21 |
+
Part of the **UltraSound ToolBox (USTB) Channel Capture Collection** contributed to the
|
| 22 |
+
[OpenH-RF](https://github.com/open-h/OpenH-RF) initiative. All acquisitions are stored in the
|
| 23 |
+
*zea* HDF5 file format (zea_version 0.1.6) and contain raw pre-beamformed
|
| 24 |
+
channel data (`/data/raw_data`).
|
| 25 |
+
|
| 26 |
+
## Dataset Description
|
| 27 |
+
|
| 28 |
+
Physics-based synthetic channel-capture data generated with the Field II ultrasound simulation framework. The collection covers point scatterers, cysts, speckle, dynamic-range targets and blocked-array (aperture-apodized) configurations, using linear (L7-4-like) and phased (P4-like) virtual probes with CPWC, FI and STA sequences. Because the scattering medium is fully defined, exact ground-truth scatterer positions and medium parameters are known. One numerical calibration acquisition (PICMUS_numerical_calib_v2) was created in collaboration with our group as part of the PICMUS effort; it is included here while the other PICMUS datasets are excluded (see Known Issues).
|
| 29 |
+
|
| 30 |
+
## Dataset Contributors
|
| 31 |
+
|
| 32 |
+
University of Oslo (UiO), Department of Informatics. Primary contact: Ole Marius Hoel Rindal (omrindal@ifi.uio.no). Team: Ole Marius Hoel Rindal, Yucel Karabiyik, Sven Peter Nasholm, Andreas Austeng.
|
| 33 |
+
|
| 34 |
+
## Dataset Creation Date
|
| 35 |
+
|
| 36 |
+
06/23/2026 (packaging date; original acquisitions/simulations were produced between 2016 and 2023).
|
| 37 |
+
|
| 38 |
+
## License / Terms of Use
|
| 39 |
+
|
| 40 |
+
Released under **Creative Commons Attribution 4.0 International (CC BY 4.0)** — see the `LICENCE`
|
| 41 |
+
file at the submission root (this license is also declared in the YAML frontmatter above). The
|
| 42 |
+
contributed data is cleared for this license. The UltraSound ToolBox (USTB) Channel Capture Collection, University of Oslo. Contributed to OpenH-RF. Zenodo record 20261898.
|
| 43 |
+
|
| 44 |
+
## Intended Usage
|
| 45 |
+
|
| 46 |
+
Generalized reconstruction, beamformer development and validation with known ground truth (RFP task 6.1); resolution/contrast/dynamic-range characterization; training/validation of learned reconstruction methods. (OpenH-RF RFP task 6.1 Generalized Reconstruction).
|
| 47 |
+
|
| 48 |
+
## Dataset Characterization
|
| 49 |
+
|
| 50 |
+
- **Data Collection Method:** synthetic
|
| 51 |
+
- **Labeling Method:** Synthetic ground truth (known scatterer positions and medium parameters).
|
| 52 |
+
- **Acquisition system:** probe(s) L7-4, P4-1;
|
| 53 |
+
element positions stored in `/probe/probe_geometry` (meters); center frequency, sampling
|
| 54 |
+
frequency and sound speed stored per acquisition in `/scan` (see per-sample feature table).
|
| 55 |
+
|
| 56 |
+
## Dataset Format
|
| 57 |
+
|
| 58 |
+
All acquisitions are stored in the **zea** HDF5 file format. Each `.hdf5` file is a single
|
| 59 |
+
acquisition with raw channel data `/data/raw_data` of shape
|
| 60 |
+
`(n_frames, n_tx, n_ax, n_el, n_ch)` and a fully populated `/scan` group describing the transmit
|
| 61 |
+
sequence (delays, focus distances, steering angles, apodization, timing). Data type: RF/IQ (n_ch in [1, 2]).
|
| 62 |
+
No demodulation or decimation was applied during packaging beyond conversion from the USTB
|
| 63 |
+
Ultrasound File Format (UFF) to zea; RF data is demodulated inside the reconstruction pipeline.
|
| 64 |
+
|
| 65 |
+
## Dataset Quantification
|
| 66 |
+
|
| 67 |
+
**Current OpenH-RF release:** 11 HDF5 files; 2.98 GB (2,980,642,816 bytes) stored; root `zea_version` **0.1.6**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
|
| 68 |
+
|
| 69 |
+
- **Number of acquisitions:** 11
|
| 70 |
+
- **Total channel-capture frames:** 17
|
| 71 |
+
- **Train / validation / test split:** not predefined (research dataset).
|
| 72 |
+
- **Stored HDF5 size:** 2.98 GB (2,980,642,816 bytes).
|
| 73 |
+
|
| 74 |
+
Per-acquisition summary:
|
| 75 |
+
|
| 76 |
+
| Acquisition | frames | transmits | samples | elements | n_ch | fs (MHz) | fc (MHz) | size (MB) |
|
| 77 |
+
|---|---|---|---|---|---|---|---|---|
|
| 78 |
+
| `FieldII_CPWC_point_scatterers_res_v2` | 7 | 1 | 7792 | 128 | 1 | 100.0 | 5.16 | 2.10 |
|
| 79 |
+
| `FieldII_CPWC_simulation_v2` | 1 | 1 | 6494 | 128 | 1 | 100.0 | 5.13 | 0.92 |
|
| 80 |
+
| `FieldII_P4_point_scatterers` | 1 | 128 | 14349 | 64 | 1 | 100.0 | 2.56 | 406.13 |
|
| 81 |
+
| `FieldII_speckle_DMASsimulation300000pts` | 1 | 96 | 10570 | 128 | 1 | 100.0 | 3.50 | 200.67 |
|
| 82 |
+
| `FieldII_STAI_dynamic_range` | 1 | 128 | 7792 | 128 | 1 | 100.0 | 5.13 | 355.40 |
|
| 83 |
+
| `FieldII_STAI_simulated_dynamic_range` | 1 | 128 | 7792 | 128 | 1 | 100.0 | 5.13 | 347.60 |
|
| 84 |
+
| `FieldII_STAI_uniform_fov` | 1 | 128 | 2771 | 128 | 1 | 25.0 | 5.13 | 125.57 |
|
| 85 |
+
| `PICMUS_numerical_calib_v2` | 1 | 5 | 445 | 128 | 2 | 5.2 | 5.21 | 2.16 |
|
| 86 |
+
| `speckle_sim_FI_P4_probe_apod_1_speckle_long_many_angles` | 1 | 150 | 15786 | 64 | 1 | 100.0 | 2.56 | 506.40 |
|
| 87 |
+
| `speckle_sim_FI_P4_probe_apod_2_speckle_long_many_angles` | 1 | 150 | 15786 | 64 | 1 | 100.0 | 2.56 | 512.49 |
|
| 88 |
+
| `speckle_sim_FI_P4_probe_apod_3_speckle_long_many_angles` | 1 | 150 | 15786 | 64 | 1 | 100.0 | 2.56 | 521.21 |
|
| 89 |
+
|
| 90 |
+
Per-sample feature table:
|
| 91 |
+
|
| 92 |
+
| Field | Shape | Dtype | Units | Description |
|
| 93 |
+
|---|---|---|---|---|
|
| 94 |
+
| `data/raw_data` | `(n_frames, n_tx, n_ax, n_el, n_ch)` | float32 | a.u. | Raw pre-beamformed RF channel data |
|
| 95 |
+
| `scan/sampling_frequency` | `scalar` | float32 | Hz | A/D sampling frequency |
|
| 96 |
+
| `scan/center_frequency` | `scalar` | float32 | Hz | Transmit pulse center frequency |
|
| 97 |
+
| `scan/demodulation_frequency` | `scalar` | float32 | Hz | Demodulation (carrier) frequency |
|
| 98 |
+
| `scan/sound_speed` | `scalar` | float32 | m/s | Assumed medium speed of sound |
|
| 99 |
+
| `scan/initial_times` | `(n_tx,)` | float32 | s | A/D start time per transmit |
|
| 100 |
+
| `scan/t0_delays` | `(n_tx, n_el)` | float32 | s | Per-element transmit fire times |
|
| 101 |
+
| `scan/tx_apodizations` | `(n_tx, n_el)` | float32 | - | Per-element transmit apodization |
|
| 102 |
+
| `scan/focus_distances` | `(n_tx,)` | float32 | m | Focus distance per transmit (0 = plane wave) |
|
| 103 |
+
| `scan/polar_angles` | `(n_tx,)` | float32 | rad | Transmit steering (polar) angle |
|
| 104 |
+
| `scan/transmit_origins` | `(n_tx, 3)` | float32 | m | Transmit beam origin (x, y, z) |
|
| 105 |
+
| `probe/probe_geometry` | `(n_el, 3)` | float32 | m | Element positions (x, y, z) |
|
| 106 |
+
|
| 107 |
+
## Subject Metadata
|
| 108 |
+
|
| 109 |
+
No human or animal subjects. Synthetic media simulated with Field II. Virtual probes: L7-4-like linear and P4-like phased arrays.
|
| 110 |
+
|
| 111 |
+
## Data Validation
|
| 112 |
+
|
| 113 |
+
A Delay-And-Sum `zea.Pipeline` is provided in the **`pipeline.yaml` at the submission root** and
|
| 114 |
+
run by the single **`reconstruct.py` at the submission root**:
|
| 115 |
+
`cast -> demodulate -> delay-and-sum beamform -> envelope detect -> normalize -> log compress`
|
| 116 |
+
(RF is demodulated in-pipeline; IQ uses a baseband pipeline). The script is geometry-driven and
|
| 117 |
+
recurses into every sub-dataset folder; running `python reconstruct.py` from the root reconstructs
|
| 118 |
+
every `.hdf5` in the collection (or pass a folder-qualified path for a single acquisition) and writes
|
| 119 |
+
`<name>_zea_bmode.png` next to each file as a portable check that the recorded geometry and timing
|
| 120 |
+
are correct.
|
| 121 |
+
|
| 122 |
+
The reference B-mode images committed alongside the data (`<name>_bmode.png`) are produced with the
|
| 123 |
+
UltraSound ToolBox (USTB) MATLAB Delay-And-Sum beamformer — the exact per-dataset reconstruction
|
| 124 |
+
used in the public USTB dataset catalog (https://unioslo.github.io/USTB/datasets.html), with
|
| 125 |
+
scanline transmit apodization for focused/sector acquisitions and correct sector-scan geometry.
|
| 126 |
+
These are the recommended reference reconstructions for visual verification.
|
| 127 |
+
|
| 128 |
+
## Known Issues
|
| 129 |
+
|
| 130 |
+
PICMUS calibration: 'PICMUS_numerical_calib_v2' was created in collaboration with our group as part of the PICMUS (Plane-wave Imaging Challenge in Medical UltraSound, IEEE IUS 2016) effort, and is therefore included here. The other PICMUS acquisitions (in-vivo carotid, experimental and simulated resolution/contrast) are deliberately excluded from this submission. Simulation framework: Field II (Jensen et al.).
|
| 131 |
+
|
| 132 |
+
## Ethical Considerations
|
| 133 |
+
|
| 134 |
+
Fully synthetic data generated with the Field II simulation framework; no human or animal subjects. No personal data is present. The included numerical calibration file was produced in collaboration with our group as part of the PICMUS effort (IEEE IUS 2016) and is released here under CC BY 4.0.
|
oslo/parameters.yaml
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Per-acquisition reconstruction parameters, shared by every folder's
|
| 2 |
+
# reconstruct.py. For each acquisition:
|
| 3 |
+
# pipeline -- which reconstruction to use:
|
| 4 |
+
# scanline (focused linear FI, per-beam),
|
| 5 |
+
# sector (phased/steered focused, pipeline_sector.yaml),
|
| 6 |
+
# iq (baseband IQ, pipeline_iq.yaml),
|
| 7 |
+
# compound (non-focused linear, pipeline.yaml).
|
| 8 |
+
# zlims/xlims -- display window in mm (framing only).
|
| 9 |
+
# dynamic_range -- display dynamic range in dB (default [-60, 0]).
|
| 10 |
+
# refocus -- if true, also emit a REFoCUS variant (<name>_zea_refocus_bmode.png).
|
| 11 |
+
# REFoCUS (Bottenus 2018) inverts the transmit-encoding matrix to
|
| 12 |
+
# recover the multistatic (full-matrix-capture) dataset before DAS.
|
| 13 |
+
# Enabled for every acquisition with enough encoded transmits to make
|
| 14 |
+
# the inversion well posed (>= 8 transmit events). reconstruct.py picks
|
| 15 |
+
# the polar pipeline_refocus_sector.yaml for `sector` acquisitions and
|
| 16 |
+
# the linear/cartesian pipeline_refocus.yaml for everything else.
|
| 17 |
+
# NOT enabled where REFoCUS is ill-posed or undefined:
|
| 18 |
+
# * single/few-transmit acquisitions (plane-wave tracking with
|
| 19 |
+
# n_tx=1, PICMUS with 5 angles),
|
| 20 |
+
# * synthetic transmit aperture (STA) acquisitions, which are
|
| 21 |
+
# already multistatic (nothing to decode).
|
| 22 |
+
|
| 23 |
+
# A_cardiac
|
| 24 |
+
Verasonics_P2-4_apical_four_chamber_subject_1:
|
| 25 |
+
pipeline: sector
|
| 26 |
+
refocus: true
|
| 27 |
+
zlims: [1, 110]
|
| 28 |
+
Verasonics_P2-4_parasternal_long_subject_1:
|
| 29 |
+
pipeline: sector
|
| 30 |
+
refocus: true
|
| 31 |
+
zlims: [1, 110]
|
| 32 |
+
|
| 33 |
+
# B_carotid
|
| 34 |
+
L7_FI_carotid_cross_1:
|
| 35 |
+
pipeline: scanline
|
| 36 |
+
refocus: true
|
| 37 |
+
zlims: [1, 60]
|
| 38 |
+
xlims: [-19, 19]
|
| 39 |
+
L7_FI_carotid_cross_2:
|
| 40 |
+
pipeline: scanline
|
| 41 |
+
refocus: true
|
| 42 |
+
zlims: [1, 60]
|
| 43 |
+
xlims: [-19, 19]
|
| 44 |
+
L7_FI_carotid_cross_sub_2:
|
| 45 |
+
pipeline: scanline
|
| 46 |
+
refocus: true
|
| 47 |
+
zlims: [1, 60]
|
| 48 |
+
xlims: [-19, 19]
|
| 49 |
+
|
| 50 |
+
# C_verasonics_phantom
|
| 51 |
+
FI_P4_cysts_center:
|
| 52 |
+
pipeline: sector
|
| 53 |
+
refocus: true
|
| 54 |
+
zlims: [1, 115]
|
| 55 |
+
FI_P4_point_scatterers:
|
| 56 |
+
pipeline: sector
|
| 57 |
+
refocus: true
|
| 58 |
+
zlims: [1, 115]
|
| 59 |
+
L7_CPWC_193328:
|
| 60 |
+
pipeline: compound
|
| 61 |
+
refocus: true
|
| 62 |
+
zlims: [0, 50]
|
| 63 |
+
xlims: [-20, 20]
|
| 64 |
+
L7_CPWC_TheGB:
|
| 65 |
+
pipeline: compound
|
| 66 |
+
refocus: true
|
| 67 |
+
zlims: [3, 45]
|
| 68 |
+
xlims: [-20, 20]
|
| 69 |
+
L7_DW_TheGB:
|
| 70 |
+
pipeline: compound
|
| 71 |
+
refocus: true
|
| 72 |
+
zlims: [3, 50]
|
| 73 |
+
xlims: [-20, 20]
|
| 74 |
+
L7_FI_IUS2018:
|
| 75 |
+
pipeline: scanline
|
| 76 |
+
refocus: true
|
| 77 |
+
zlims: [1, 60]
|
| 78 |
+
xlims: [-19, 19]
|
| 79 |
+
L7_FI_TheGB:
|
| 80 |
+
pipeline: scanline
|
| 81 |
+
refocus: true
|
| 82 |
+
zlims: [1, 60]
|
| 83 |
+
xlims: [-19, 19]
|
| 84 |
+
L7_FI_Verasonics:
|
| 85 |
+
pipeline: scanline
|
| 86 |
+
refocus: true
|
| 87 |
+
zlims: [1, 60]
|
| 88 |
+
xlims: [-19, 19]
|
| 89 |
+
L7_FI_Verasonics_CIRS:
|
| 90 |
+
pipeline: scanline
|
| 91 |
+
refocus: true
|
| 92 |
+
zlims: [1, 60]
|
| 93 |
+
xlims: [-19, 19]
|
| 94 |
+
L7_FI_Verasonics_CIRS_points:
|
| 95 |
+
pipeline: scanline
|
| 96 |
+
refocus: true
|
| 97 |
+
zlims: [1, 60]
|
| 98 |
+
xlims: [-19, 19]
|
| 99 |
+
# STA (already multistatic -> REFoCUS N/A)
|
| 100 |
+
L7_STA_TheGB:
|
| 101 |
+
pipeline: compound
|
| 102 |
+
zlims: [3, 45]
|
| 103 |
+
xlims: [-20, 20]
|
| 104 |
+
P4_FI_121444_45mm_focus:
|
| 105 |
+
pipeline: sector
|
| 106 |
+
refocus: true
|
| 107 |
+
zlims: [1, 58]
|
| 108 |
+
# STA (already multistatic -> REFoCUS N/A)
|
| 109 |
+
STAI_UFF_CIRS_phantom:
|
| 110 |
+
pipeline: compound
|
| 111 |
+
zlims: [10, 80]
|
| 112 |
+
xlims: [-15, 15]
|
| 113 |
+
# STA (already multistatic -> REFoCUS N/A)
|
| 114 |
+
experimental_STAI_dynamic_range:
|
| 115 |
+
pipeline: compound
|
| 116 |
+
zlims: [3, 55]
|
| 117 |
+
xlims: [-19, 19]
|
| 118 |
+
# STA (n_tx == n_el == 128, already multistatic -> REFoCUS N/A)
|
| 119 |
+
experimental_dynamic_range_phantom:
|
| 120 |
+
pipeline: compound
|
| 121 |
+
zlims: [3, 58]
|
| 122 |
+
xlims: [-19, 19]
|
| 123 |
+
|
| 124 |
+
# D_alpinion_phantom
|
| 125 |
+
Alpinion_L3-8_CPWC_hyperechoic_scatterers:
|
| 126 |
+
pipeline: compound
|
| 127 |
+
refocus: true
|
| 128 |
+
zlims: [3, 55]
|
| 129 |
+
xlims: [-19, 19]
|
| 130 |
+
Alpinion_L3-8_CPWC_hypoechoic:
|
| 131 |
+
pipeline: compound
|
| 132 |
+
refocus: true
|
| 133 |
+
zlims: [5, 50]
|
| 134 |
+
xlims: [-19, 19]
|
| 135 |
+
Alpinion_L3-8_FI_hyperechoic_scatterers:
|
| 136 |
+
pipeline: scanline
|
| 137 |
+
refocus: true
|
| 138 |
+
zlims: [3, 55]
|
| 139 |
+
xlims: [-19, 19]
|
| 140 |
+
Alpinion_L3-8_FI_hypoechoic:
|
| 141 |
+
pipeline: scanline
|
| 142 |
+
refocus: true
|
| 143 |
+
zlims: [0, 60]
|
| 144 |
+
xlims: [-19, 19]
|
| 145 |
+
dynamic_range: [-50, 0]
|
| 146 |
+
|
| 147 |
+
# E_simulation
|
| 148 |
+
# Single plane wave (n_tx=1) -> REFoCUS N/A
|
| 149 |
+
FieldII_CPWC_point_scatterers_res_v2:
|
| 150 |
+
pipeline: compound
|
| 151 |
+
zlims: [35, 42]
|
| 152 |
+
xlims: [-3, 3]
|
| 153 |
+
# Single plane wave (n_tx=1) -> REFoCUS N/A
|
| 154 |
+
FieldII_CPWC_simulation_v2:
|
| 155 |
+
pipeline: compound
|
| 156 |
+
zlims: [3, 45]
|
| 157 |
+
xlims: [-20, 20]
|
| 158 |
+
FieldII_P4_point_scatterers:
|
| 159 |
+
pipeline: sector
|
| 160 |
+
refocus: true
|
| 161 |
+
zlims: [1, 110]
|
| 162 |
+
# STA (already multistatic -> REFoCUS N/A)
|
| 163 |
+
FieldII_STAI_dynamic_range:
|
| 164 |
+
pipeline: compound
|
| 165 |
+
zlims: [5, 55]
|
| 166 |
+
xlims: [-20, 20]
|
| 167 |
+
# STA (already multistatic -> REFoCUS N/A)
|
| 168 |
+
FieldII_STAI_simulated_dynamic_range:
|
| 169 |
+
pipeline: compound
|
| 170 |
+
zlims: [5, 55]
|
| 171 |
+
xlims: [-20, 20]
|
| 172 |
+
# STA (already multistatic -> REFoCUS N/A)
|
| 173 |
+
FieldII_STAI_uniform_fov:
|
| 174 |
+
pipeline: compound
|
| 175 |
+
zlims: [1, 55]
|
| 176 |
+
xlims: [-20, 20]
|
| 177 |
+
FieldII_speckle_DMASsimulation300000pts:
|
| 178 |
+
pipeline: sector
|
| 179 |
+
refocus: true
|
| 180 |
+
zlims: [1, 60]
|
| 181 |
+
xlims: [-14, 14]
|
| 182 |
+
# Baseband IQ, only 5 plane-wave angles -> REFoCUS N/A
|
| 183 |
+
PICMUS_numerical_calib_v2:
|
| 184 |
+
pipeline: iq
|
| 185 |
+
zlims: [5, 50]
|
| 186 |
+
xlims: [-19, 19]
|
| 187 |
+
speckle_sim_FI_P4_probe_apod_1_speckle_long_many_angles:
|
| 188 |
+
pipeline: sector
|
| 189 |
+
refocus: true
|
| 190 |
+
zlims: [1, 120]
|
| 191 |
+
speckle_sim_FI_P4_probe_apod_2_speckle_long_many_angles:
|
| 192 |
+
pipeline: sector
|
| 193 |
+
refocus: true
|
| 194 |
+
zlims: [1, 120]
|
| 195 |
+
speckle_sim_FI_P4_probe_apod_3_speckle_long_many_angles:
|
| 196 |
+
pipeline: sector
|
| 197 |
+
refocus: true
|
| 198 |
+
zlims: [1, 120]
|
| 199 |
+
|
| 200 |
+
# F_motion
|
| 201 |
+
# Plane-wave tracking (n_tx=1 per frame) -> REFoCUS N/A
|
| 202 |
+
ARFI_dataset:
|
| 203 |
+
pipeline: compound
|
| 204 |
+
zlims: [1, 40]
|
| 205 |
+
xlims: [-19, 19]
|
| 206 |
+
SWE_L7_type_I:
|
| 207 |
+
pipeline: compound
|
| 208 |
+
zlims: [1, 40]
|
| 209 |
+
xlims: [-19, 19]
|
| 210 |
+
SWE_L7_type_III:
|
| 211 |
+
pipeline: compound
|
| 212 |
+
zlims: [1, 40]
|
| 213 |
+
xlims: [-19, 19]
|
| 214 |
+
SWE_L7_type_IV:
|
| 215 |
+
pipeline: compound
|
| 216 |
+
zlims: [1, 40]
|
| 217 |
+
xlims: [-19, 19]
|
oslo/pipeline.yaml
CHANGED
|
@@ -24,7 +24,6 @@ pipeline:
|
|
| 24 |
params:
|
| 25 |
beamformer: delay_and_sum
|
| 26 |
enable_pfield: false
|
| 27 |
-
num_patches: 200
|
| 28 |
- name: envelope_detect
|
| 29 |
- name: normalize
|
| 30 |
- name: log_compress
|
|
|
|
| 24 |
params:
|
| 25 |
beamformer: delay_and_sum
|
| 26 |
enable_pfield: false
|
|
|
|
| 27 |
- name: envelope_detect
|
| 28 |
- name: normalize
|
| 29 |
- name: log_compress
|
oslo/pipeline_iq.yaml
CHANGED
|
@@ -24,7 +24,6 @@ pipeline:
|
|
| 24 |
params:
|
| 25 |
beamformer: delay_and_sum
|
| 26 |
enable_pfield: false
|
| 27 |
-
num_patches: 200
|
| 28 |
- name: envelope_detect
|
| 29 |
- name: normalize
|
| 30 |
- name: log_compress
|
|
|
|
| 24 |
params:
|
| 25 |
beamformer: delay_and_sum
|
| 26 |
enable_pfield: false
|
|
|
|
| 27 |
- name: envelope_detect
|
| 28 |
- name: normalize
|
| 29 |
- name: log_compress
|
oslo/pipeline_refocus.yaml
CHANGED
|
@@ -37,7 +37,6 @@ pipeline:
|
|
| 37 |
params:
|
| 38 |
beamformer: delay_and_sum
|
| 39 |
enable_pfield: true
|
| 40 |
-
num_patches: 200
|
| 41 |
- name: envelope_detect
|
| 42 |
- name: normalize
|
| 43 |
- name: log_compress
|
|
|
|
| 37 |
params:
|
| 38 |
beamformer: delay_and_sum
|
| 39 |
enable_pfield: true
|
|
|
|
| 40 |
- name: envelope_detect
|
| 41 |
- name: normalize
|
| 42 |
- name: log_compress
|
oslo/pipeline_refocus_sector.yaml
CHANGED
|
@@ -46,7 +46,6 @@ pipeline:
|
|
| 46 |
params:
|
| 47 |
beamformer: delay_and_sum
|
| 48 |
enable_pfield: true
|
| 49 |
-
num_patches: 200
|
| 50 |
- name: envelope_detect
|
| 51 |
- name: normalize
|
| 52 |
- name: log_compress
|
|
|
|
| 46 |
params:
|
| 47 |
beamformer: delay_and_sum
|
| 48 |
enable_pfield: true
|
|
|
|
| 49 |
- name: envelope_detect
|
| 50 |
- name: normalize
|
| 51 |
- name: log_compress
|
oslo/pipeline_scanline.yaml
CHANGED
|
@@ -21,7 +21,6 @@ pipeline:
|
|
| 21 |
beamformer: delay_and_sum
|
| 22 |
enable_aligned_apodization: true
|
| 23 |
enable_pfield: false
|
| 24 |
-
num_patches: 200
|
| 25 |
- name: envelope_detect
|
| 26 |
- name: normalize
|
| 27 |
- name: log_compress
|
|
|
|
| 21 |
beamformer: delay_and_sum
|
| 22 |
enable_aligned_apodization: true
|
| 23 |
enable_pfield: false
|
|
|
|
| 24 |
- name: envelope_detect
|
| 25 |
- name: normalize
|
| 26 |
- name: log_compress
|
oslo/pipeline_sector.yaml
CHANGED
|
@@ -37,7 +37,6 @@ pipeline:
|
|
| 37 |
params:
|
| 38 |
beamformer: delay_and_sum
|
| 39 |
enable_pfield: true
|
| 40 |
-
num_patches: 200
|
| 41 |
- name: envelope_detect
|
| 42 |
- name: normalize
|
| 43 |
- name: log_compress
|
|
|
|
| 37 |
params:
|
| 38 |
beamformer: delay_and_sum
|
| 39 |
enable_pfield: true
|
|
|
|
| 40 |
- name: envelope_detect
|
| 41 |
- name: normalize
|
| 42 |
- name: log_compress
|
politorino/README.md
CHANGED
|
@@ -50,14 +50,13 @@ This data was employed for an initial study evaluating fascicle tracking algorit
|
|
| 50 |
|
| 51 |
Submitted in the [`zea` file format](https://zea.readthedocs.io/en/latest/)
|
| 52 |
(one HDF5 file per acquisition).
|
| 53 |
-
`
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
--tracking-frame-idx: index of the frame to visualize.
|
| 57 |
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
|
| 62 |
Per-sample contents of the HDF5:
|
| 63 |
|
|
|
|
| 50 |
|
| 51 |
Submitted in the [`zea` file format](https://zea.readthedocs.io/en/latest/)
|
| 52 |
(one HDF5 file per acquisition).
|
| 53 |
+
`reconstruct.py` reconstructs a B-mode from the raw channel data and overlays
|
| 54 |
+
the stored fascicle tracking on it, writing a `.png`. An example output is
|
| 55 |
+
provided. The constants at the top of the script select what is drawn:
|
|
|
|
| 56 |
|
| 57 |
+
- `FRAME` -- index of the acquisition frame to reconstruct
|
| 58 |
+
- `FPS` -- which stored tracking rate to overlay (25, 50 or 125 fps)
|
| 59 |
+
- `TRACK_INDEX` -- index of the tracking sample within that rate
|
| 60 |
|
| 61 |
Per-sample contents of the HDF5:
|
| 62 |
|
politorino/pipeline.yaml
CHANGED
|
@@ -1,8 +1,6 @@
|
|
| 1 |
pipeline:
|
| 2 |
operations:
|
| 3 |
-
-
|
| 4 |
-
params:
|
| 5 |
-
num_patches: 200
|
| 6 |
- envelope_detect
|
| 7 |
- name: normalize
|
| 8 |
params:
|
|
|
|
| 1 |
pipeline:
|
| 2 |
operations:
|
| 3 |
+
- beamform
|
|
|
|
|
|
|
| 4 |
- envelope_detect
|
| 5 |
- name: normalize
|
| 6 |
params:
|
resolvestroke/clinical/SP02-Left-2/pipeline.yaml
CHANGED
|
@@ -15,7 +15,6 @@ pipeline:
|
|
| 15 |
- name: beamform
|
| 16 |
params:
|
| 17 |
beamformer: delay_and_sum
|
| 18 |
-
num_patches: 100
|
| 19 |
- name: envelope_detect
|
| 20 |
- name: normalize
|
| 21 |
- name: log_compress
|
|
|
|
| 15 |
- name: beamform
|
| 16 |
params:
|
| 17 |
beamformer: delay_and_sum
|
|
|
|
| 18 |
- name: envelope_detect
|
| 19 |
- name: normalize
|
| 20 |
- name: log_compress
|
resolvestroke/phantom_flow/pipeline.yaml
CHANGED
|
@@ -15,7 +15,6 @@ pipeline:
|
|
| 15 |
- name: beamform
|
| 16 |
params:
|
| 17 |
beamformer: delay_and_sum
|
| 18 |
-
num_patches: 100
|
| 19 |
- name: envelope_detect
|
| 20 |
- name: normalize
|
| 21 |
- name: log_compress
|
|
|
|
| 15 |
- name: beamform
|
| 16 |
params:
|
| 17 |
beamformer: delay_and_sum
|
|
|
|
| 18 |
- name: envelope_detect
|
| 19 |
- name: normalize
|
| 20 |
- name: log_compress
|
resolvestroke/phantom_mp/pipeline.yaml
CHANGED
|
@@ -15,7 +15,6 @@ pipeline:
|
|
| 15 |
- name: beamform
|
| 16 |
params:
|
| 17 |
beamformer: delay_and_sum
|
| 18 |
-
num_patches: 100
|
| 19 |
- name: envelope_detect
|
| 20 |
- name: normalize
|
| 21 |
- name: log_compress
|
|
|
|
| 15 |
- name: beamform
|
| 16 |
params:
|
| 17 |
beamformer: delay_and_sum
|
|
|
|
| 18 |
- name: envelope_detect
|
| 19 |
- name: normalize
|
| 20 |
- name: log_compress
|
resolvestroke/saddle/pipeline.yaml
CHANGED
|
@@ -15,7 +15,6 @@ pipeline:
|
|
| 15 |
- name: beamform
|
| 16 |
params:
|
| 17 |
beamformer: delay_and_sum
|
| 18 |
-
num_patches: 100
|
| 19 |
- name: envelope_detect
|
| 20 |
- name: normalize
|
| 21 |
- name: log_compress
|
|
|
|
| 15 |
- name: beamform
|
| 16 |
params:
|
| 17 |
beamformer: delay_and_sum
|
|
|
|
| 18 |
- name: envelope_detect
|
| 19 |
- name: normalize
|
| 20 |
- name: log_compress
|
siemens-healthineers/pipeline.yaml
CHANGED
|
@@ -1,8 +1,6 @@
|
|
| 1 |
pipeline:
|
| 2 |
operations:
|
| 3 |
-
-
|
| 4 |
-
params:
|
| 5 |
-
num_patches: 200
|
| 6 |
- envelope_detect
|
| 7 |
- name: normalize
|
| 8 |
params:
|
|
|
|
| 1 |
pipeline:
|
| 2 |
operations:
|
| 3 |
+
- beamform
|
|
|
|
|
|
|
| 4 |
- envelope_detect
|
| 5 |
- name: normalize
|
| 6 |
params:
|
stanford-murine/pipeline_hadamard.yaml
CHANGED
|
@@ -11,7 +11,6 @@ pipeline:
|
|
| 11 |
params:
|
| 12 |
enable_pfield: false
|
| 13 |
# Bound work units so the deep C5-2v grid fits on a 24 GB GPU.
|
| 14 |
-
num_patches: 1000
|
| 15 |
- envelope_detect
|
| 16 |
# Use the true maximum; percentile normalization would clip strong reflectors.
|
| 17 |
- name: normalize
|
|
|
|
| 11 |
params:
|
| 12 |
enable_pfield: false
|
| 13 |
# Bound work units so the deep C5-2v grid fits on a 24 GB GPU.
|
|
|
|
| 14 |
- envelope_detect
|
| 15 |
# Use the true maximum; percentile normalization would clip strong reflectors.
|
| 16 |
- name: normalize
|
stanford-murine/pipeline_multifocal.yaml
CHANGED
|
@@ -11,7 +11,6 @@ pipeline:
|
|
| 11 |
params:
|
| 12 |
enable_pfield: false
|
| 13 |
# Bound work units so the deep C5-2v grid fits on a 24 GB GPU.
|
| 14 |
-
num_patches: 1000
|
| 15 |
- envelope_detect
|
| 16 |
# Use the true maximum; percentile normalization would clip strong reflectors.
|
| 17 |
- name: normalize
|
|
|
|
| 11 |
params:
|
| 12 |
enable_pfield: false
|
| 13 |
# Bound work units so the deep C5-2v grid fits on a 24 GB GPU.
|
|
|
|
| 14 |
- envelope_detect
|
| 15 |
# Use the true maximum; percentile normalization would clip strong reflectors.
|
| 16 |
- name: normalize
|
stanford-murine/pipeline_synthetic_aperture.yaml
CHANGED
|
@@ -12,7 +12,6 @@ pipeline:
|
|
| 12 |
params:
|
| 13 |
enable_pfield: false
|
| 14 |
# Bound work units so the deep C5-2v grid fits on a 24 GB GPU.
|
| 15 |
-
num_patches: 1000
|
| 16 |
- envelope_detect
|
| 17 |
# Use the true maximum; percentile normalization would clip strong reflectors.
|
| 18 |
- name: normalize
|
|
|
|
| 12 |
params:
|
| 13 |
enable_pfield: false
|
| 14 |
# Bound work units so the deep C5-2v grid fits on a 24 GB GPU.
|
|
|
|
| 15 |
- envelope_detect
|
| 16 |
# Use the true maximum; percentile normalization would clip strong reflectors.
|
| 17 |
- name: normalize
|
technion/bladder/pipeline.yaml
CHANGED
|
@@ -25,7 +25,6 @@ pipeline:
|
|
| 25 |
- name: beamform
|
| 26 |
params:
|
| 27 |
beamformer: delay_and_sum
|
| 28 |
-
num_patches: 90
|
| 29 |
enable_aligned_apodization: true # scanline one-hot transmit mask
|
| 30 |
- name: envelope_detect
|
| 31 |
- name: normalize
|
|
|
|
| 25 |
- name: beamform
|
| 26 |
params:
|
| 27 |
beamformer: delay_and_sum
|
|
|
|
| 28 |
enable_aligned_apodization: true # scanline one-hot transmit mask
|
| 29 |
- name: envelope_detect
|
| 30 |
- name: normalize
|
technion/cardiac/pipeline.yaml
CHANGED
|
@@ -29,7 +29,6 @@ pipeline:
|
|
| 29 |
- name: beamform
|
| 30 |
params:
|
| 31 |
beamformer: delay_and_sum
|
| 32 |
-
num_patches: 70
|
| 33 |
enable_aligned_apodization: true
|
| 34 |
- name: envelope_detect
|
| 35 |
- name: normalize
|
|
|
|
| 29 |
- name: beamform
|
| 30 |
params:
|
| 31 |
beamformer: delay_and_sum
|
|
|
|
| 32 |
enable_aligned_apodization: true
|
| 33 |
- name: envelope_detect
|
| 34 |
- name: normalize
|
technion/phantom/pipeline.yaml
CHANGED
|
@@ -25,7 +25,6 @@ pipeline:
|
|
| 25 |
- name: beamform
|
| 26 |
params:
|
| 27 |
beamformer: delay_and_sum
|
| 28 |
-
num_patches: 90
|
| 29 |
enable_aligned_apodization: true # scanline one-hot transmit mask
|
| 30 |
- name: envelope_detect
|
| 31 |
- name: normalize
|
|
|
|
| 25 |
- name: beamform
|
| 26 |
params:
|
| 27 |
beamformer: delay_and_sum
|
|
|
|
| 28 |
enable_aligned_apodization: true # scanline one-hot transmit mask
|
| 29 |
- name: envelope_detect
|
| 30 |
- name: normalize
|
tel-aviv/phantom/pipeline.yaml
CHANGED
|
@@ -14,7 +14,6 @@ pipeline:
|
|
| 14 |
params:
|
| 15 |
beamformer: delay_and_sum
|
| 16 |
enable_pfield: false
|
| 17 |
-
num_patches: 100
|
| 18 |
- name: envelope_detect
|
| 19 |
- name: normalize
|
| 20 |
- name: log_compress
|
|
|
|
| 14 |
params:
|
| 15 |
beamformer: delay_and_sum
|
| 16 |
enable_pfield: false
|
|
|
|
| 17 |
- name: envelope_detect
|
| 18 |
- name: normalize
|
| 19 |
- name: log_compress
|
tue-aaa/pipeline.yaml
CHANGED
|
@@ -8,9 +8,7 @@ pipeline:
|
|
| 8 |
size: 64
|
| 9 |
end: 96
|
| 10 |
- demodulate
|
| 11 |
-
-
|
| 12 |
-
params:
|
| 13 |
-
num_patches: 200
|
| 14 |
- envelope_detect
|
| 15 |
- name: normalize
|
| 16 |
params:
|
|
|
|
| 8 |
size: 64
|
| 9 |
end: 96
|
| 10 |
- demodulate
|
| 11 |
+
- beamform
|
|
|
|
|
|
|
| 12 |
- envelope_detect
|
| 13 |
- name: normalize
|
| 14 |
params:
|
tue-cardiac/pipelines/pipeline.yaml
CHANGED
|
@@ -12,12 +12,19 @@ parameters:
|
|
| 12 |
zlims: [0.0, 0.11354112]
|
| 13 |
pipeline:
|
| 14 |
operations:
|
| 15 |
-
-
|
|
|
|
|
|
|
| 16 |
- band_pass_filter
|
| 17 |
- apply_window
|
| 18 |
- demodulate
|
| 19 |
-
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
- envelope_detect
|
| 22 |
- normalize
|
| 23 |
- log_compress
|
|
|
|
| 12 |
zlims: [0.0, 0.11354112]
|
| 13 |
pipeline:
|
| 14 |
operations:
|
| 15 |
+
- name: cast
|
| 16 |
+
params:
|
| 17 |
+
dtype: float32
|
| 18 |
- band_pass_filter
|
| 19 |
- apply_window
|
| 20 |
- demodulate
|
| 21 |
+
- name: downsample
|
| 22 |
+
params:
|
| 23 |
+
factor: 2
|
| 24 |
+
- name: beamform
|
| 25 |
+
params:
|
| 26 |
+
beamformer: delay_and_sum
|
| 27 |
+
enable_pfield: true
|
| 28 |
- envelope_detect
|
| 29 |
- normalize
|
| 30 |
- log_compress
|
tue-cardiac/pipelines/pipeline_hadamard.yaml
CHANGED
|
@@ -12,13 +12,24 @@ parameters:
|
|
| 12 |
zlims: [0.0, 0.11354112]
|
| 13 |
pipeline:
|
| 14 |
operations:
|
| 15 |
-
-
|
|
|
|
|
|
|
| 16 |
- band_pass_filter
|
| 17 |
- apply_window
|
| 18 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
- demodulate
|
| 20 |
-
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
- envelope_detect
|
| 23 |
- normalize
|
| 24 |
- log_compress
|
|
|
|
| 12 |
zlims: [0.0, 0.11354112]
|
| 13 |
pipeline:
|
| 14 |
operations:
|
| 15 |
+
- name: cast
|
| 16 |
+
params:
|
| 17 |
+
dtype: float32
|
| 18 |
- band_pass_filter
|
| 19 |
- apply_window
|
| 20 |
+
- name: refocus
|
| 21 |
+
params:
|
| 22 |
+
method: adjoint
|
| 23 |
+
param: 0
|
| 24 |
+
jit_compile: false
|
| 25 |
- demodulate
|
| 26 |
+
- name: downsample
|
| 27 |
+
params:
|
| 28 |
+
factor: 2
|
| 29 |
+
- name: beamform
|
| 30 |
+
params:
|
| 31 |
+
beamformer: delay_and_sum
|
| 32 |
+
enable_pfield: false
|
| 33 |
- envelope_detect
|
| 34 |
- normalize
|
| 35 |
- log_compress
|
tue-cardiac/pipelines/pipeline_harmonic.yaml
CHANGED
|
@@ -12,12 +12,19 @@ parameters:
|
|
| 12 |
zlims: [0.0, 0.11354112]
|
| 13 |
pipeline:
|
| 14 |
operations:
|
| 15 |
-
-
|
|
|
|
|
|
|
| 16 |
- band_pass_filter
|
| 17 |
- apply_window
|
| 18 |
- demodulate
|
| 19 |
-
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
- envelope_detect
|
| 22 |
- normalize
|
| 23 |
- log_compress
|
|
|
|
| 12 |
zlims: [0.0, 0.11354112]
|
| 13 |
pipeline:
|
| 14 |
operations:
|
| 15 |
+
- name: cast
|
| 16 |
+
params:
|
| 17 |
+
dtype: float32
|
| 18 |
- band_pass_filter
|
| 19 |
- apply_window
|
| 20 |
- demodulate
|
| 21 |
+
- name: downsample
|
| 22 |
+
params:
|
| 23 |
+
factor: 2
|
| 24 |
+
- name: beamform
|
| 25 |
+
params:
|
| 26 |
+
beamformer: delay_and_sum
|
| 27 |
+
enable_pfield: true
|
| 28 |
- envelope_detect
|
| 29 |
- normalize
|
| 30 |
- log_compress
|
tue-cardiac/pipelines/pipeline_random.yaml
CHANGED
|
@@ -12,13 +12,24 @@ parameters:
|
|
| 12 |
zlims: [0.0, 0.11354112]
|
| 13 |
pipeline:
|
| 14 |
operations:
|
| 15 |
-
-
|
|
|
|
|
|
|
| 16 |
- band_pass_filter
|
| 17 |
- apply_window
|
| 18 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
- demodulate
|
| 20 |
-
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
- envelope_detect
|
| 23 |
- normalize
|
| 24 |
- log_compress
|
|
|
|
| 12 |
zlims: [0.0, 0.11354112]
|
| 13 |
pipeline:
|
| 14 |
operations:
|
| 15 |
+
- name: cast
|
| 16 |
+
params:
|
| 17 |
+
dtype: float32
|
| 18 |
- band_pass_filter
|
| 19 |
- apply_window
|
| 20 |
+
- name: refocus
|
| 21 |
+
params:
|
| 22 |
+
method: tikhonov
|
| 23 |
+
param: 0.01
|
| 24 |
+
jit_compile: false
|
| 25 |
- demodulate
|
| 26 |
+
- name: downsample
|
| 27 |
+
params:
|
| 28 |
+
factor: 2
|
| 29 |
+
- name: beamform
|
| 30 |
+
params:
|
| 31 |
+
beamformer: delay_and_sum
|
| 32 |
+
enable_pfield: false
|
| 33 |
- envelope_detect
|
| 34 |
- normalize
|
| 35 |
- log_compress
|
tue-cardiac/reconstruct.py
DELETED
|
@@ -1,104 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env python3
|
| 2 |
-
"""Reconstruct one track/frame from a TU/e Cardiac multi-track zea file."""
|
| 3 |
-
|
| 4 |
-
from __future__ import annotations
|
| 5 |
-
|
| 6 |
-
import os
|
| 7 |
-
|
| 8 |
-
os.environ.setdefault("KERAS_BACKEND", "jax")
|
| 9 |
-
os.environ.setdefault("MPLBACKEND", "Agg")
|
| 10 |
-
|
| 11 |
-
import argparse
|
| 12 |
-
from pathlib import Path
|
| 13 |
-
|
| 14 |
-
import matplotlib.pyplot as plt
|
| 15 |
-
import numpy as np
|
| 16 |
-
import zea
|
| 17 |
-
from zea import Config, File, Pipeline
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
HERE = Path(__file__).resolve().parent
|
| 21 |
-
PIPELINE_FOR_TRACK = {
|
| 22 |
-
"focused_fund": "pipeline.yaml",
|
| 23 |
-
"focused_harm": "pipeline_harmonic.yaml",
|
| 24 |
-
"wide_fund": "pipeline.yaml",
|
| 25 |
-
"wide_harm": "pipeline_harmonic.yaml",
|
| 26 |
-
"planewave": "pipeline.yaml",
|
| 27 |
-
"diverging": "pipeline.yaml",
|
| 28 |
-
"hadamard": "pipeline_hadamard.yaml",
|
| 29 |
-
"random": "pipeline_random.yaml",
|
| 30 |
-
}
|
| 31 |
-
TRACKS = tuple(PIPELINE_FOR_TRACK)
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
def main() -> int:
|
| 35 |
-
parser = argparse.ArgumentParser(description=__doc__)
|
| 36 |
-
parser.add_argument("zea_file", type=Path)
|
| 37 |
-
parser.add_argument("--track", required=True, choices=TRACKS)
|
| 38 |
-
parser.add_argument("--frame", type=int, default=0)
|
| 39 |
-
parser.add_argument("--pipeline", type=Path, default=None)
|
| 40 |
-
parser.add_argument("--output", type=Path, default=None)
|
| 41 |
-
parser.add_argument("--device", default=None, help="e.g. cpu, cuda:0, auto:1")
|
| 42 |
-
args = parser.parse_args()
|
| 43 |
-
|
| 44 |
-
pipeline_path = args.pipeline or HERE / "pipelines" / PIPELINE_FOR_TRACK[args.track]
|
| 45 |
-
output_path = args.output or HERE / "reference" / (
|
| 46 |
-
f"{args.zea_file.stem}_{args.track}_frame-{args.frame:03d}.png"
|
| 47 |
-
)
|
| 48 |
-
output_path.parent.mkdir(parents=True, exist_ok=True)
|
| 49 |
-
|
| 50 |
-
zea.init_device(device=args.device, verbose=False)
|
| 51 |
-
config = Config.from_path(str(pipeline_path))
|
| 52 |
-
pipeline = Pipeline.from_config(config)
|
| 53 |
-
|
| 54 |
-
with File(str(args.zea_file)) as handle:
|
| 55 |
-
labels = list(handle.track_labels)
|
| 56 |
-
if args.track not in labels:
|
| 57 |
-
raise ValueError(f"track {args.track!r} not found; available tracks: {labels}")
|
| 58 |
-
track = handle.tracks[labels.index(args.track)]
|
| 59 |
-
n_frames = int(track.data.raw_data.shape[0])
|
| 60 |
-
if not 0 <= args.frame < n_frames:
|
| 61 |
-
raise ValueError(f"frame {args.frame} outside 0..{n_frames - 1}")
|
| 62 |
-
parameters = track.load_parameters(**config.parameters)
|
| 63 |
-
raw = track.data.raw_data[args.frame : args.frame + 1]
|
| 64 |
-
|
| 65 |
-
inputs = pipeline.prepare_parameters(parameters)
|
| 66 |
-
outputs = pipeline(**{pipeline.key: raw}, **inputs)
|
| 67 |
-
image = np.asarray(outputs[pipeline.output_key])[0]
|
| 68 |
-
dynamic_range = tuple(config.parameters.dynamic_range)
|
| 69 |
-
|
| 70 |
-
# Scan conversion leaves pixels outside the polar sector undefined. Render
|
| 71 |
-
# those expected out-of-sector values at the display floor.
|
| 72 |
-
image = np.nan_to_num(
|
| 73 |
-
image,
|
| 74 |
-
nan=dynamic_range[0],
|
| 75 |
-
neginf=dynamic_range[0],
|
| 76 |
-
posinf=dynamic_range[1],
|
| 77 |
-
)
|
| 78 |
-
|
| 79 |
-
extent = getattr(parameters, "extent_imshow", None)
|
| 80 |
-
if extent is not None:
|
| 81 |
-
extent = np.asarray(extent) * 1e3
|
| 82 |
-
zea.visualize.set_mpl_style()
|
| 83 |
-
figure, axis = plt.subplots(figsize=(6, 6))
|
| 84 |
-
rendered = axis.imshow(
|
| 85 |
-
image,
|
| 86 |
-
extent=extent,
|
| 87 |
-
cmap="gray",
|
| 88 |
-
vmin=dynamic_range[0],
|
| 89 |
-
vmax=dynamic_range[1],
|
| 90 |
-
aspect="auto",
|
| 91 |
-
)
|
| 92 |
-
axis.set_xlabel("Lateral (mm)")
|
| 93 |
-
axis.set_ylabel("Depth (mm)")
|
| 94 |
-
axis.set_title(f"{args.zea_file.stem} — {args.track} — frame {args.frame}")
|
| 95 |
-
figure.colorbar(rendered, ax=axis, label="dB")
|
| 96 |
-
figure.tight_layout()
|
| 97 |
-
figure.savefig(output_path, dpi=150, bbox_inches="tight", metadata={})
|
| 98 |
-
plt.close(figure)
|
| 99 |
-
print(f"saved {output_path}")
|
| 100 |
-
return 0
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
if __name__ == "__main__":
|
| 104 |
-
raise SystemExit(main())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tue-carotid/README.md
CHANGED
|
@@ -17,6 +17,20 @@ language:
|
|
| 17 |
|
| 18 |
# TU/e Carotid 2023
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
## Dataset Description
|
| 21 |
|
| 22 |
The dataset includes carotid artery scans from 10 subjects.
|
|
|
|
| 17 |
|
| 18 |
# TU/e Carotid 2023
|
| 19 |
|
| 20 |
+

|
| 21 |
+
|
| 22 |
+
One cardiac cycle of a longitudinal bifurcation scan,
|
| 23 |
+
[`data/5_long_bifur_R_0000.hdf5`](https://huggingface.co/datasets/nvidia/OpenH-RF/blob/main/tue-carotid/data/5_long_bifur_R_0000.hdf5).
|
| 24 |
+
|
| 25 |
+
`zea` renders it straight from the Hub with the
|
| 26 |
+
`pipeline.yaml` in this folder. Try it out with the following command:
|
| 27 |
+
|
| 28 |
+
```bash
|
| 29 |
+
zea process \
|
| 30 |
+
--dataset hf://nvidia/OpenH-RF/tue-carotid/data/5_long_bifur_R_0000.hdf5 \
|
| 31 |
+
--config hf://nvidia/OpenH-RF/tue-carotid/pipeline.yaml
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
## Dataset Description
|
| 35 |
|
| 36 |
The dataset includes carotid artery scans from 10 subjects.
|
tue-carotid/assets/5_long_bifur_R_0000.gif
ADDED
|
Git LFS Details
|
tue-carotid/pipeline.yaml
CHANGED
|
@@ -17,7 +17,6 @@ pipeline:
|
|
| 17 |
params:
|
| 18 |
beamformer: delay_and_sum
|
| 19 |
enable_pfield: true
|
| 20 |
-
num_patches: 1024
|
| 21 |
- envelope_detect
|
| 22 |
- normalize
|
| 23 |
- log_compress
|
|
|
|
| 17 |
params:
|
| 18 |
beamformer: delay_and_sum
|
| 19 |
enable_pfield: true
|
|
|
|
| 20 |
- envelope_detect
|
| 21 |
- normalize
|
| 22 |
- log_compress
|
tumunich/pipeline.yaml
CHANGED
|
@@ -21,8 +21,7 @@ pipeline:
|
|
| 21 |
params:
|
| 22 |
jit_compile: false
|
| 23 |
with_batch_dim: false
|
| 24 |
-
params:
|
| 25 |
-
num_patches: 200
|
| 26 |
- reshape_grid
|
| 27 |
- envelope_detect
|
| 28 |
- name: normalize
|
|
@@ -30,7 +29,7 @@ pipeline:
|
|
| 30 |
output_range:
|
| 31 |
- 0.0
|
| 32 |
- 1.0
|
| 33 |
-
-
|
| 34 |
parameters:
|
| 35 |
f_number: 1.155
|
| 36 |
apply_lens_correction: true
|
|
|
|
| 21 |
params:
|
| 22 |
jit_compile: false
|
| 23 |
with_batch_dim: false
|
| 24 |
+
params: {}
|
|
|
|
| 25 |
- reshape_grid
|
| 26 |
- envelope_detect
|
| 27 |
- name: normalize
|
|
|
|
| 29 |
output_range:
|
| 30 |
- 0.0
|
| 31 |
- 1.0
|
| 32 |
+
- log_compress
|
| 33 |
parameters:
|
| 34 |
f_number: 1.155
|
| 35 |
apply_lens_correction: true
|
twente-cavitation/README.md
CHANGED
|
@@ -1,117 +1,117 @@
|
|
| 1 |
-
---
|
| 2 |
-
pretty_name: "OpenH-RF — Hermen de Roo / Passive cavitation detection"
|
| 3 |
-
license: cc-by-4.0
|
| 4 |
-
task_categories:
|
| 5 |
-
- image-classification
|
| 6 |
-
tags:
|
| 7 |
-
- ultrasound
|
| 8 |
-
- rf
|
| 9 |
-
- openh-rf
|
| 10 |
-
- cavitation
|
| 11 |
-
language:
|
| 12 |
-
- en
|
| 13 |
-
size_categories:
|
| 14 |
-
- 1K<n<10K
|
| 15 |
-
---
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
## Dataset Description
|
| 19 |
-
The collected data is for cavitation mapping of microbubbles, insonified with focused ultrasound at various pressures and flowrates. This data applicable to therapeutic ultrasound and local drug delivery in any part of the human body. The used sensor hardware is a Verasonics research system with an L11-4v transducer for recording the bubble response during the treatment. Insonification is done using a single element transducer at 2.25MHz. The insonification is done with a 1000 cycles long pulse at 2.25MHz, where the first and last 2 microseconds are used for ramping up and down the pressure. The pulse repetition frequency used is 20Hz, repeated 400 times.
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
## Dataset Contributor(s)
|
| 23 |
-
Hermen de Roo
|
| 24 |
-
Michel Versluis
|
| 25 |
-
Guillaume Lajoinie (contact email: g.p.r.lajoinie@utwente.nl)
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
## Dataset Creation Date
|
| 29 |
-
Data recorded on 01/19/2026. Dataset created on 07/09/2026.
|
| 30 |
-
|
| 31 |
-
## License / Terms of Use
|
| 32 |
-
I confirm that the data is cleared for use under CC BY 4.0.
|
| 33 |
-
|
| 34 |
-
## Intended Usage
|
| 35 |
-
The dataset contains data over a large pressure range, from very low pressures up to the very high pressures used in therapeutic ultrasound. With this data one can quantify the treatment threshold and treatment effects over this wide range. The dataset also includes data for different levels of perfusion by varying the flowrate, from which the effect of perfusion on treatment efficacy can be studied. The data is intended to be processed with passive cavitation detection algorithms.
|
| 36 |
-
|
| 37 |
-
## Dataset Characterization
|
| 38 |
-
- **Data Collection Method:** phantom
|
| 39 |
-
- **Labeling Method:** N/A
|
| 40 |
-
- **Acquisition system:** Verasonics Vantage 256, L11-4v transducer. 128 elements, 7.24MHz center frequency, 27.778 MHz sampling rate
|
| 41 |
-
|
| 42 |
-
## Dataset Format
|
| 43 |
-
.zea file format. No preprocessing is applied.
|
| 44 |
-
|
| 45 |
-
## Dataset Quantification
|
| 46 |
-
|
| 47 |
-
**Current OpenH-RF release:** 19 HDF5 files; 10.85 GB (10,850,533,376 bytes) stored; root `zea_version` **0.1.6**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
|
| 48 |
-
|
| 49 |
-
- 19 aquisitions of 400 frames each, totalling 7600 frames
|
| 50 |
-
- No train/validation/test split is defined; all acquisitions are provided in full.
|
| 51 |
-
- **Stored HDF5 size:** 10.85 GB (10,850,533,376 bytes).
|
| 52 |
-
- All recordings were taken under identical conditions, except for the driving pressure and flowrate of the microbubble solution through the channel.
|
| 53 |
-
|
| 54 |
-
Each acquisition is one zea HDF5 file with a single track (`tracks/track_0`). The
|
| 55 |
-
per-frame channel data plus the scan/probe fields needed to reconstruct it are:
|
| 56 |
-
|
| 57 |
-
| Field | Shape | dtype | Units | Description |
|
| 58 |
-
|---|---|---|---|---|
|
| 59 |
-
| `data/raw_data` | (400, 1, 16384, 128, 1) | int16 | a.u. (ADC counts) | Receive RF channel data: 400 frames × 1 transmit event × 16384 axial samples × 128 elements × 1 channel. This is a passive acquisition — the array only receives. |
|
| 60 |
-
| `probe/probe_geometry` | (128, 3) | float32 | m | (x, y, z) position of each of the 128 elements (L11-4v, 0.3 mm pitch). |
|
| 61 |
-
| `probe/probe_center_frequency` | scalar | float32 | Hz | Probe center frequency (7.24 MHz). |
|
| 62 |
-
| `probe/element_width` | scalar | float32 | m | Element width (0.27 mm). |
|
| 63 |
-
| `scan/sampling_frequency` | scalar | float32 | Hz | RF sampling rate (27.78 MHz). |
|
| 64 |
-
| `scan/center_frequency` | scalar | float32 | Hz | Receive center frequency (≈7.35 MHz). |
|
| 65 |
-
| `scan/demodulation_frequency` | scalar | float32 | Hz | Demodulation frequency used for IQ conversion (≈6.94 MHz). |
|
| 66 |
-
| `scan/sound_speed` | scalar | float32 | m/s | Assumed speed of sound (1480). |
|
| 67 |
-
| `scan/initial_times` | (1,) | float32 | s | Time of the first recorded sample relative to transmit (0). |
|
| 68 |
-
| `scan/t0_delays` | (1, 128) | float32 | s | Per-element transmit delays (all 0 — array does not transmit). |
|
| 69 |
-
| `scan/tx_apodizations` | (1, 128) | float32 | a.u. | Transmit apodization per element (all 0 — passive acquisition; `reconstruct.py` overrides to ones for receive beamforming). |
|
| 70 |
-
| `scan/time_to_next_transmit` | (400, 1) | float32 | s | Interval to the next transmit per frame (PRF = 20 Hz). |
|
| 71 |
-
| `scan/tgc_gain_curve` | (16384,) | float32 | a.u. | Time-gain-compensation curve applied along the axial dimension. |
|
| 72 |
-
| `tracks/track_0/transmit_only` | scalar | bool | — | False (the array receives). |
|
| 73 |
-
|
| 74 |
-
> **Note.** The table below is the **acquisition matrix** — it lists which files exist
|
| 75 |
-
> and under what driving pressure / flowrate, not the internal layout of a sample.
|
| 76 |
-
|
| 77 |
-
Files are named `cavitation_bubbles_<pressure>kPa_<flowrate>mL.hdf5`, where
|
| 78 |
-
`<flowrate>` is the microbubble flowrate in mL/min (`01` = 0.1, `05` = 0.5, `2` = 2).
|
| 79 |
-
|
| 80 |
-
| Name | Acoustic driving pressure [kPa]| Microbubble flowrate [mL/min] |
|
| 81 |
-
|--- |--- |--- |
|
| 82 |
-
| cavitation_bubbles_10kPa_01mL.hdf5 | 10 | 0.1 |
|
| 83 |
-
| cavitation_bubbles_25kPa_01mL.hdf5 | 25 | 0.1 |
|
| 84 |
-
| cavitation_bubbles_50kPa_01mL.hdf5 | 50 | 0.1 |
|
| 85 |
-
| cavitation_bubbles_75kPa_01mL.hdf5 | 75 | 0.1 |
|
| 86 |
-
| cavitation_bubbles_100kPa_01mL.hdf5 | 100 | 0.1 |
|
| 87 |
-
| cavitation_bubbles_250kPa_01mL.hdf5 | 250 | 0.1 |
|
| 88 |
-
| cavitation_bubbles_500kPa_01mL.hdf5 | 500 | 0.1 |
|
| 89 |
-
| cavitation_bubbles_750kPa_01mL.hdf5 | 750 | 0.1 |
|
| 90 |
-
| cavitation_bubbles_1000kPa_01mL.hdf5 | 1000 | 0.1 |
|
| 91 |
-
| cavitation_bubbles_10kPa_05mL.hdf5 | 10 | 0.5 |
|
| 92 |
-
| cavitation_bubbles_50kPa_05mL.hdf5 | 50 | 0.5 |
|
| 93 |
-
| cavitation_bubbles_100kPa_05mL.hdf5 | 100 | 0.5 |
|
| 94 |
-
| cavitation_bubbles_500kPa_05mL.hdf5 | 500 | 0.5 |
|
| 95 |
-
| cavitation_bubbles_1000kPa_05mL.hdf5 | 1000 | 0.5 |
|
| 96 |
-
| cavitation_bubbles_10kPa_2mL.hdf5 | 10 | 2 |
|
| 97 |
-
| cavitation_bubbles_50kPa_2mL.hdf5 | 50 | 2 |
|
| 98 |
-
| cavitation_bubbles_100kPa_2mL.hdf5 | 100 | 2 |
|
| 99 |
-
| cavitation_bubbles_500kPa_2mL.hdf5 | 500 | 2 |
|
| 100 |
-
| cavitation_bubbles_1000kPa_2mL.hdf5 | 1000 | 2 |
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
## Subject Metadata
|
| 104 |
-
Only one phantom was used. This is a phantom made of PVCp with a single flow channel ~200 micrometer diameter. The used scanner is a Verasonics Vantage 256 with a L11-4v transducer.
|
| 105 |
-
|
| 106 |
-
## Data Validation
|
| 107 |
-
An reconstruction pipeline can be found in pipeline.yaml. The script reconstruct.py is an example of the reconstruction of the data, using the minimum variance / Capon beamformer. An example reconstruction is saved with this dataset, and named reference_image_1000kPa_2mL_per_min.png, which was generated using the Capon beamforming algorithm using epsilon = 2, on the datafile named cavitation_bubbles_1000kPa_2mL_per_min.hdf5. By default the script saves the map next to the input file with the same name and a `.png` extension (e.g. `my_file.hdf5` → `my_file.png`); pass `--output` to override. Usage:
|
| 108 |
-
python reconstruct.py
|
| 109 |
-
python reconstruct.py --input my_file.hdf5 --device cpu
|
| 110 |
-
python reconstruct.py --input my_file.hdf5 --output my_map.png --frames 20 --device cuda:0
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
## Known Issues
|
| 114 |
-
No known issues.
|
| 115 |
-
|
| 116 |
-
## Ethical Considerations
|
| 117 |
-
This is phantom acquisition data, hence no human-subject IRB/HIPAA approval is required.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: "OpenH-RF — Hermen de Roo / Passive cavitation detection"
|
| 3 |
+
license: cc-by-4.0
|
| 4 |
+
task_categories:
|
| 5 |
+
- image-classification
|
| 6 |
+
tags:
|
| 7 |
+
- ultrasound
|
| 8 |
+
- rf
|
| 9 |
+
- openh-rf
|
| 10 |
+
- cavitation
|
| 11 |
+
language:
|
| 12 |
+
- en
|
| 13 |
+
size_categories:
|
| 14 |
+
- 1K<n<10K
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
## Dataset Description
|
| 19 |
+
The collected data is for cavitation mapping of microbubbles, insonified with focused ultrasound at various pressures and flowrates. This data applicable to therapeutic ultrasound and local drug delivery in any part of the human body. The used sensor hardware is a Verasonics research system with an L11-4v transducer for recording the bubble response during the treatment. Insonification is done using a single element transducer at 2.25MHz. The insonification is done with a 1000 cycles long pulse at 2.25MHz, where the first and last 2 microseconds are used for ramping up and down the pressure. The pulse repetition frequency used is 20Hz, repeated 400 times.
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
## Dataset Contributor(s)
|
| 23 |
+
Hermen de Roo
|
| 24 |
+
Michel Versluis
|
| 25 |
+
Guillaume Lajoinie (contact email: g.p.r.lajoinie@utwente.nl)
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
## Dataset Creation Date
|
| 29 |
+
Data recorded on 01/19/2026. Dataset created on 07/09/2026.
|
| 30 |
+
|
| 31 |
+
## License / Terms of Use
|
| 32 |
+
I confirm that the data is cleared for use under CC BY 4.0.
|
| 33 |
+
|
| 34 |
+
## Intended Usage
|
| 35 |
+
The dataset contains data over a large pressure range, from very low pressures up to the very high pressures used in therapeutic ultrasound. With this data one can quantify the treatment threshold and treatment effects over this wide range. The dataset also includes data for different levels of perfusion by varying the flowrate, from which the effect of perfusion on treatment efficacy can be studied. The data is intended to be processed with passive cavitation detection algorithms.
|
| 36 |
+
|
| 37 |
+
## Dataset Characterization
|
| 38 |
+
- **Data Collection Method:** phantom
|
| 39 |
+
- **Labeling Method:** N/A
|
| 40 |
+
- **Acquisition system:** Verasonics Vantage 256, L11-4v transducer. 128 elements, 7.24MHz center frequency, 27.778 MHz sampling rate
|
| 41 |
+
|
| 42 |
+
## Dataset Format
|
| 43 |
+
.zea file format. No preprocessing is applied.
|
| 44 |
+
|
| 45 |
+
## Dataset Quantification
|
| 46 |
+
|
| 47 |
+
**Current OpenH-RF release:** 19 HDF5 files; 10.85 GB (10,850,533,376 bytes) stored; root `zea_version` **0.1.6**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
|
| 48 |
+
|
| 49 |
+
- 19 aquisitions of 400 frames each, totalling 7600 frames
|
| 50 |
+
- No train/validation/test split is defined; all acquisitions are provided in full.
|
| 51 |
+
- **Stored HDF5 size:** 10.85 GB (10,850,533,376 bytes).
|
| 52 |
+
- All recordings were taken under identical conditions, except for the driving pressure and flowrate of the microbubble solution through the channel.
|
| 53 |
+
|
| 54 |
+
Each acquisition is one zea HDF5 file with a single track (`tracks/track_0`). The
|
| 55 |
+
per-frame channel data plus the scan/probe fields needed to reconstruct it are:
|
| 56 |
+
|
| 57 |
+
| Field | Shape | dtype | Units | Description |
|
| 58 |
+
|---|---|---|---|---|
|
| 59 |
+
| `data/raw_data` | (400, 1, 16384, 128, 1) | int16 | a.u. (ADC counts) | Receive RF channel data: 400 frames × 1 transmit event × 16384 axial samples × 128 elements × 1 channel. This is a passive acquisition — the array only receives. |
|
| 60 |
+
| `probe/probe_geometry` | (128, 3) | float32 | m | (x, y, z) position of each of the 128 elements (L11-4v, 0.3 mm pitch). |
|
| 61 |
+
| `probe/probe_center_frequency` | scalar | float32 | Hz | Probe center frequency (7.24 MHz). |
|
| 62 |
+
| `probe/element_width` | scalar | float32 | m | Element width (0.27 mm). |
|
| 63 |
+
| `scan/sampling_frequency` | scalar | float32 | Hz | RF sampling rate (27.78 MHz). |
|
| 64 |
+
| `scan/center_frequency` | scalar | float32 | Hz | Receive center frequency (≈7.35 MHz). |
|
| 65 |
+
| `scan/demodulation_frequency` | scalar | float32 | Hz | Demodulation frequency used for IQ conversion (≈6.94 MHz). |
|
| 66 |
+
| `scan/sound_speed` | scalar | float32 | m/s | Assumed speed of sound (1480). |
|
| 67 |
+
| `scan/initial_times` | (1,) | float32 | s | Time of the first recorded sample relative to transmit (0). |
|
| 68 |
+
| `scan/t0_delays` | (1, 128) | float32 | s | Per-element transmit delays (all 0 — array does not transmit). |
|
| 69 |
+
| `scan/tx_apodizations` | (1, 128) | float32 | a.u. | Transmit apodization per element (all 0 — passive acquisition; `reconstruct.py` overrides to ones for receive beamforming). |
|
| 70 |
+
| `scan/time_to_next_transmit` | (400, 1) | float32 | s | Interval to the next transmit per frame (PRF = 20 Hz). |
|
| 71 |
+
| `scan/tgc_gain_curve` | (16384,) | float32 | a.u. | Time-gain-compensation curve applied along the axial dimension. |
|
| 72 |
+
| `tracks/track_0/transmit_only` | scalar | bool | — | False (the array receives). |
|
| 73 |
+
|
| 74 |
+
> **Note.** The table below is the **acquisition matrix** — it lists which files exist
|
| 75 |
+
> and under what driving pressure / flowrate, not the internal layout of a sample.
|
| 76 |
+
|
| 77 |
+
Files are named `cavitation_bubbles_<pressure>kPa_<flowrate>mL.hdf5`, where
|
| 78 |
+
`<flowrate>` is the microbubble flowrate in mL/min (`01` = 0.1, `05` = 0.5, `2` = 2).
|
| 79 |
+
|
| 80 |
+
| Name | Acoustic driving pressure [kPa]| Microbubble flowrate [mL/min] |
|
| 81 |
+
|--- |--- |--- |
|
| 82 |
+
| cavitation_bubbles_10kPa_01mL.hdf5 | 10 | 0.1 |
|
| 83 |
+
| cavitation_bubbles_25kPa_01mL.hdf5 | 25 | 0.1 |
|
| 84 |
+
| cavitation_bubbles_50kPa_01mL.hdf5 | 50 | 0.1 |
|
| 85 |
+
| cavitation_bubbles_75kPa_01mL.hdf5 | 75 | 0.1 |
|
| 86 |
+
| cavitation_bubbles_100kPa_01mL.hdf5 | 100 | 0.1 |
|
| 87 |
+
| cavitation_bubbles_250kPa_01mL.hdf5 | 250 | 0.1 |
|
| 88 |
+
| cavitation_bubbles_500kPa_01mL.hdf5 | 500 | 0.1 |
|
| 89 |
+
| cavitation_bubbles_750kPa_01mL.hdf5 | 750 | 0.1 |
|
| 90 |
+
| cavitation_bubbles_1000kPa_01mL.hdf5 | 1000 | 0.1 |
|
| 91 |
+
| cavitation_bubbles_10kPa_05mL.hdf5 | 10 | 0.5 |
|
| 92 |
+
| cavitation_bubbles_50kPa_05mL.hdf5 | 50 | 0.5 |
|
| 93 |
+
| cavitation_bubbles_100kPa_05mL.hdf5 | 100 | 0.5 |
|
| 94 |
+
| cavitation_bubbles_500kPa_05mL.hdf5 | 500 | 0.5 |
|
| 95 |
+
| cavitation_bubbles_1000kPa_05mL.hdf5 | 1000 | 0.5 |
|
| 96 |
+
| cavitation_bubbles_10kPa_2mL.hdf5 | 10 | 2 |
|
| 97 |
+
| cavitation_bubbles_50kPa_2mL.hdf5 | 50 | 2 |
|
| 98 |
+
| cavitation_bubbles_100kPa_2mL.hdf5 | 100 | 2 |
|
| 99 |
+
| cavitation_bubbles_500kPa_2mL.hdf5 | 500 | 2 |
|
| 100 |
+
| cavitation_bubbles_1000kPa_2mL.hdf5 | 1000 | 2 |
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
## Subject Metadata
|
| 104 |
+
Only one phantom was used. This is a phantom made of PVCp with a single flow channel ~200 micrometer diameter. The used scanner is a Verasonics Vantage 256 with a L11-4v transducer.
|
| 105 |
+
|
| 106 |
+
## Data Validation
|
| 107 |
+
An reconstruction pipeline can be found in pipeline.yaml. The script reconstruct.py is an example of the reconstruction of the data, using the minimum variance / Capon beamformer. An example reconstruction is saved with this dataset, and named reference_image_1000kPa_2mL_per_min.png, which was generated using the Capon beamforming algorithm using epsilon = 2, on the datafile named cavitation_bubbles_1000kPa_2mL_per_min.hdf5. By default the script saves the map next to the input file with the same name and a `.png` extension (e.g. `my_file.hdf5` → `my_file.png`); pass `--output` to override. Usage:
|
| 108 |
+
python reconstruct.py
|
| 109 |
+
python reconstruct.py --input my_file.hdf5 --device cpu
|
| 110 |
+
python reconstruct.py --input my_file.hdf5 --output my_map.png --frames 20 --device cuda:0
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
## Known Issues
|
| 114 |
+
No known issues.
|
| 115 |
+
|
| 116 |
+
## Ethical Considerations
|
| 117 |
+
This is phantom acquisition data, hence no human-subject IRB/HIPAA approval is required.
|
twente-cavitation/pipeline.yaml
CHANGED
|
@@ -1,20 +1,22 @@
|
|
| 1 |
-
pipeline:
|
| 2 |
-
operations:
|
| 3 |
-
- name: keras.ops.cast
|
| 4 |
-
params:
|
| 5 |
-
dtype: float32
|
| 6 |
-
- demodulate
|
| 7 |
-
- name: beamform
|
| 8 |
-
params:
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
- 0.
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
| 1 |
+
pipeline:
|
| 2 |
+
operations:
|
| 3 |
+
- name: keras.ops.cast
|
| 4 |
+
params:
|
| 5 |
+
dtype: float32
|
| 6 |
+
- demodulate
|
| 7 |
+
- name: beamform
|
| 8 |
+
params:
|
| 9 |
+
beamformer: minimum_variance
|
| 10 |
+
subarray_size: 32
|
| 11 |
+
diagonal_loading: 0.01
|
| 12 |
+
- envelope_detect
|
| 13 |
+
parameters:
|
| 14 |
+
grid_size_x: 387
|
| 15 |
+
grid_size_z: 577
|
| 16 |
+
xlims:
|
| 17 |
+
- -0.019
|
| 18 |
+
- 0.019
|
| 19 |
+
zlims:
|
| 20 |
+
- 0.002
|
| 21 |
+
- 0.06
|
| 22 |
+
apply_lens_correction: true
|
twente-microbubblesim/README.md
CHANGED
|
@@ -57,7 +57,7 @@ deep-learning methods for microbubble super-resolution imaging.
|
|
| 57 |
## Dataset Characterization
|
| 58 |
|
| 59 |
- **Data collection method:** Synthetic.
|
| 60 |
-
- **Ground truth:** Simulated 3-D microbubble positions are stored as
|
| 61 |
elements (`bubble_x`, `bubble_y`, and `bubble_z`).
|
| 62 |
- **Bubble populations:** Monodisperse bubbles with a radius of 2.4 micrometres
|
| 63 |
and 5% standard deviation, and a polydisperse SonoVue population.
|
|
@@ -79,7 +79,7 @@ deep-learning methods for microbubble super-resolution imaging.
|
|
| 79 |
|
| 80 |
## Dataset Format
|
| 81 |
|
| 82 |
-
Each bubble distribution is stored in one
|
| 83 |
tracks. The raw channel data in every `tracks/track_i/data/raw_data` dataset
|
| 84 |
have shape `(1, 1, 8446, 96, 1)`: one frame, one transmit, 8,446 time samples,
|
| 85 |
96 receive elements, and one real RF channel. RF values are `float32`; their
|
|
@@ -212,7 +212,7 @@ to one `.hdf5` acquisition file.
|
|
| 212 |
|
| 213 |
## Data Validation
|
| 214 |
|
| 215 |
-
All 500 HDF5 files were checked for the expected
|
| 216 |
ordered and labelled tracks, RF shape `(1, 1, 8446, 96, 1)`, and track-specific
|
| 217 |
pulse metadata. The original submission passed zea 0.1.2 validation. Representative RF traces and pulse
|
| 218 |
waveforms were also compared with their pulse-folder sources with no mismatch.
|
|
|
|
| 57 |
## Dataset Characterization
|
| 58 |
|
| 59 |
- **Data collection method:** Synthetic.
|
| 60 |
+
- **Ground truth:** Simulated 3-D microbubble positions are stored as zea custom
|
| 61 |
elements (`bubble_x`, `bubble_y`, and `bubble_z`).
|
| 62 |
- **Bubble populations:** Monodisperse bubbles with a radius of 2.4 micrometres
|
| 63 |
and 5% standard deviation, and a polydisperse SonoVue population.
|
|
|
|
| 79 |
|
| 80 |
## Dataset Format
|
| 81 |
|
| 82 |
+
Each bubble distribution is stored in one zea HDF5 file containing 12 pulse
|
| 83 |
tracks. The raw channel data in every `tracks/track_i/data/raw_data` dataset
|
| 84 |
have shape `(1, 1, 8446, 96, 1)`: one frame, one transmit, 8,446 time samples,
|
| 85 |
96 receive elements, and one real RF channel. RF values are `float32`; their
|
|
|
|
| 212 |
|
| 213 |
## Data Validation
|
| 214 |
|
| 215 |
+
All 500 HDF5 files were checked for the expected zea container structure, 12
|
| 216 |
ordered and labelled tracks, RF shape `(1, 1, 8446, 96, 1)`, and track-specific
|
| 217 |
pulse metadata. The original submission passed zea 0.1.2 validation. Representative RF traces and pulse
|
| 218 |
waveforms were also compared with their pulse-folder sources with no mismatch.
|
twente-microbubblesim/migrate_custom_names.py
DELETED
|
@@ -1,239 +0,0 @@
|
|
| 1 |
-
# SPDX-License-Identifier: Apache-2.0
|
| 2 |
-
"""Collision-safe custom-key migration followed by a verified zea resave.
|
| 3 |
-
|
| 4 |
-
Only source notation is encoded in the replacement names. In particular,
|
| 5 |
-
``bubble_initial_r0`` preserves R0 separately from the source's distinct r0.
|
| 6 |
-
"""
|
| 7 |
-
from __future__ import annotations
|
| 8 |
-
|
| 9 |
-
import argparse
|
| 10 |
-
import hashlib
|
| 11 |
-
import itertools
|
| 12 |
-
import json
|
| 13 |
-
import math
|
| 14 |
-
import os
|
| 15 |
-
from pathlib import Path
|
| 16 |
-
import re
|
| 17 |
-
import shutil
|
| 18 |
-
import tempfile
|
| 19 |
-
|
| 20 |
-
import hdf5plugin # Register the source and destination compression filters.
|
| 21 |
-
import h5py
|
| 22 |
-
import numpy as np
|
| 23 |
-
|
| 24 |
-
CUSTOM_NAME_MAP = {
|
| 25 |
-
"bubble_R0": "bubble_initial_r0",
|
| 26 |
-
"bubble_p_dB": "bubble_p_db",
|
| 27 |
-
**{f"track_{i}_pulse_A": f"track_{i}_pulse_a" for i in range(12)},
|
| 28 |
-
}
|
| 29 |
-
LEGACY_NAME_ATTRIBUTE = "source_custom_name"
|
| 30 |
-
SNAKE_CASE = re.compile(r"^[a-z_][a-z0-9_]*$")
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
def canonicalize_custom_names(custom):
|
| 34 |
-
"""Return canonical keys for old or new files without merging collisions."""
|
| 35 |
-
result = dict(custom)
|
| 36 |
-
for old, new in CUSTOM_NAME_MAP.items():
|
| 37 |
-
if old in result:
|
| 38 |
-
if new in result:
|
| 39 |
-
raise ValueError(f"Both legacy {old!r} and canonical {new!r} exist")
|
| 40 |
-
result[new] = result.pop(old)
|
| 41 |
-
return result
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
def sha256(path):
|
| 45 |
-
digest = hashlib.sha256()
|
| 46 |
-
with open(path, "rb") as stream:
|
| 47 |
-
for block in iter(lambda: stream.read(8*1024**2), b""):
|
| 48 |
-
digest.update(block)
|
| 49 |
-
return digest.hexdigest()
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
def mapped_path(path):
|
| 53 |
-
if path.startswith("custom/"):
|
| 54 |
-
return "custom/" + CUSTOM_NAME_MAP.get(path[7:], path[7:])
|
| 55 |
-
return path
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
def object_paths(file):
|
| 59 |
-
paths, seen = [], set()
|
| 60 |
-
def walk(group):
|
| 61 |
-
for key in group:
|
| 62 |
-
if not isinstance(group.get(key, getlink=True), h5py.HardLink):
|
| 63 |
-
raise ValueError("External/soft links are not supported")
|
| 64 |
-
obj = group[key]
|
| 65 |
-
address = h5py.h5o.get_info(obj.id).addr
|
| 66 |
-
if address in seen:
|
| 67 |
-
raise ValueError("Aliased objects are not supported")
|
| 68 |
-
seen.add(address)
|
| 69 |
-
path = obj.name.lstrip("/")
|
| 70 |
-
paths.append(path)
|
| 71 |
-
if isinstance(obj, h5py.Group):
|
| 72 |
-
walk(obj)
|
| 73 |
-
elif obj.external or obj.is_virtual or h5py.check_dtype(ref=obj.dtype):
|
| 74 |
-
raise ValueError("External, virtual, and reference datasets are not supported")
|
| 75 |
-
elif obj.shape is None:
|
| 76 |
-
raise ValueError("Null datasets are not supported")
|
| 77 |
-
walk(file)
|
| 78 |
-
return sorted(paths)
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
def planned_renames(file):
|
| 82 |
-
if "custom" not in file or not isinstance(file["custom"], h5py.Group):
|
| 83 |
-
raise ValueError("Expected Twente custom group")
|
| 84 |
-
names = set(file["custom"])
|
| 85 |
-
if "bubble_r0" not in names or not names.intersection({"bubble_R0", "bubble_initial_r0"}):
|
| 86 |
-
raise ValueError("Expected distinct source R0 and r0 fields")
|
| 87 |
-
plan = {}
|
| 88 |
-
for name in names:
|
| 89 |
-
target = CUSTOM_NAME_MAP.get(name, name)
|
| 90 |
-
if not SNAKE_CASE.fullmatch(target):
|
| 91 |
-
raise ValueError(f"Unrecognized non-snake-case custom key: {name!r}")
|
| 92 |
-
if target != name:
|
| 93 |
-
if target in names:
|
| 94 |
-
raise ValueError(f"Rename collision: {name!r} -> {target!r}")
|
| 95 |
-
plan["custom/" + name] = "custom/" + target
|
| 96 |
-
for path in object_paths(file):
|
| 97 |
-
if path.startswith("custom/"):
|
| 98 |
-
for segment in mapped_path(path).split("/"):
|
| 99 |
-
if not SNAKE_CASE.fullmatch(segment):
|
| 100 |
-
raise ValueError(f"Unrecognized non-snake-case custom path: {path!r}")
|
| 101 |
-
obj = file[path]
|
| 102 |
-
for key in obj.attrs:
|
| 103 |
-
if h5py.check_dtype(ref=obj.attrs.get_id(key).dtype):
|
| 104 |
-
raise ValueError("Reference attributes are not supported")
|
| 105 |
-
return plan
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
def equal(a, b):
|
| 109 |
-
a, b = np.asarray(a), np.asarray(b)
|
| 110 |
-
if a.shape != b.shape:
|
| 111 |
-
return False
|
| 112 |
-
if a.dtype.kind in "fc" and b.dtype.kind in "fc":
|
| 113 |
-
return np.array_equal(a, b, equal_nan=True)
|
| 114 |
-
return np.array_equal(a, b)
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
def blocks(shape, itemsize, budget=16*1024**2):
|
| 118 |
-
if not shape:
|
| 119 |
-
yield ()
|
| 120 |
-
return
|
| 121 |
-
if not all(shape):
|
| 122 |
-
return
|
| 123 |
-
tile = list(shape)
|
| 124 |
-
while math.prod(tile)*max(itemsize, 8) > budget:
|
| 125 |
-
axis = max(range(len(tile)), key=tile.__getitem__)
|
| 126 |
-
tile[axis] = (tile[axis]+1)//2
|
| 127 |
-
for start in itertools.product(*(range(0, n, t) for n, t in zip(shape, tile))):
|
| 128 |
-
yield tuple(slice(s, min(s+t, n)) for s, t, n in zip(start, tile, shape))
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
def validate_migration(source, output):
|
| 132 |
-
"""Check every dataset value and attribute, allowing only declared renames."""
|
| 133 |
-
with h5py.File(source, "r") as a, h5py.File(output, "r") as b:
|
| 134 |
-
plan = planned_renames(a)
|
| 135 |
-
left, right = object_paths(a), object_paths(b)
|
| 136 |
-
if sorted(mapped_path(p) for p in left) != right:
|
| 137 |
-
raise ValueError("Object inventory changed beyond the explicit name mapping")
|
| 138 |
-
if str(b.attrs.get("zea_version")) != "0.1.6":
|
| 139 |
-
raise ValueError("Output must be written by zea 0.1.6")
|
| 140 |
-
datasets = 0
|
| 141 |
-
for path in ["/"] + left:
|
| 142 |
-
x, y = a[path], b[mapped_path(path)]
|
| 143 |
-
if type(x) is not type(y):
|
| 144 |
-
raise ValueError(f"Object type changed: {path}")
|
| 145 |
-
if isinstance(x, h5py.Dataset):
|
| 146 |
-
if x.shape != y.shape or x.dtype != y.dtype:
|
| 147 |
-
raise ValueError(f"Shape or dtype changed: {path}")
|
| 148 |
-
for block in blocks(x.shape, x.dtype.itemsize):
|
| 149 |
-
old, new = np.asarray(x[block]), np.asarray(y[block])
|
| 150 |
-
same = equal(old, new) if old.dtype.hasobject else old.tobytes() == new.tobytes()
|
| 151 |
-
if not same:
|
| 152 |
-
raise ValueError(f"Dataset values changed: {path}")
|
| 153 |
-
datasets += 1
|
| 154 |
-
expected = set(x.attrs)
|
| 155 |
-
if path in plan:
|
| 156 |
-
expected.add(LEGACY_NAME_ATTRIBUTE)
|
| 157 |
-
if y.attrs.get(LEGACY_NAME_ATTRIBUTE) != path.split("/")[-1]:
|
| 158 |
-
raise ValueError(f"Missing original-name provenance: {path}")
|
| 159 |
-
if set(y.attrs) != expected:
|
| 160 |
-
raise ValueError(f"Attribute inventory changed: {path}")
|
| 161 |
-
for key in x.attrs:
|
| 162 |
-
if path == "/" and key == "zea_version":
|
| 163 |
-
continue
|
| 164 |
-
if not equal(x.attrs[key], y.attrs[key]):
|
| 165 |
-
raise ValueError(f"Attribute changed: {path}@{key}")
|
| 166 |
-
return dict(differences=[], all_dataset_values_checked=True, datasets_checked=datasets,
|
| 167 |
-
allowed_changes=[dict(path=p, new_path=q, category="user_approved_custom_rename")
|
| 168 |
-
for p, q in sorted(plan.items())])
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
def restore_attributes(source, output, plan):
|
| 172 |
-
# zea regenerates standard attributes; retain the original scientific metadata.
|
| 173 |
-
with h5py.File(source, "r") as a, h5py.File(output, "r+") as b:
|
| 174 |
-
paths = object_paths(a)
|
| 175 |
-
if sorted(mapped_path(p) for p in paths) != object_paths(b):
|
| 176 |
-
raise ValueError("Resave changed the object inventory")
|
| 177 |
-
for path in ["/"] + paths:
|
| 178 |
-
x, y = a[path], b[mapped_path(path)]
|
| 179 |
-
for key in list(y.attrs):
|
| 180 |
-
if not (path == "/" and key == "zea_version"):
|
| 181 |
-
del y.attrs[key]
|
| 182 |
-
for key in x.attrs:
|
| 183 |
-
if path == "/" and key == "zea_version":
|
| 184 |
-
continue
|
| 185 |
-
aid = x.attrs.get_id(key)
|
| 186 |
-
if h5py.check_dtype(ref=aid.dtype):
|
| 187 |
-
raise ValueError("Reference attributes are not supported")
|
| 188 |
-
y.attrs.create(key, x.attrs[key], dtype=aid.dtype, shape=aid.shape)
|
| 189 |
-
if path in plan:
|
| 190 |
-
if LEGACY_NAME_ATTRIBUTE in y.attrs:
|
| 191 |
-
if y.attrs[LEGACY_NAME_ATTRIBUTE] != path.split("/")[-1]:
|
| 192 |
-
raise ValueError("Conflicting original-name provenance")
|
| 193 |
-
else:
|
| 194 |
-
y.attrs[LEGACY_NAME_ATTRIBUTE] = path.split("/")[-1]
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
def resave_file(source, output, *, _writer=None):
|
| 198 |
-
"""Copy/rename/resave/verify one full file; never modify the source."""
|
| 199 |
-
source, output = Path(source), Path(output)
|
| 200 |
-
if source.resolve() == output.resolve() or output.exists():
|
| 201 |
-
raise ValueError("Output must be a new path distinct from the source")
|
| 202 |
-
with h5py.File(source, "r") as f:
|
| 203 |
-
plan = planned_renames(f)
|
| 204 |
-
source_sha = sha256(source)
|
| 205 |
-
if _writer is None:
|
| 206 |
-
from importlib.metadata import version
|
| 207 |
-
if version("zea") != "0.1.6":
|
| 208 |
-
raise RuntimeError("This migration requires zea 0.1.6")
|
| 209 |
-
from zea.data.file_operations import resave
|
| 210 |
-
_writer = resave
|
| 211 |
-
output.parent.mkdir(parents=True, exist_ok=True)
|
| 212 |
-
with tempfile.TemporaryDirectory(prefix=".twente-resave-", dir=output.parent) as directory:
|
| 213 |
-
renamed = Path(directory) / "renamed-input.hdf5"
|
| 214 |
-
candidate = Path(directory) / "candidate.hdf5"
|
| 215 |
-
shutil.copyfile(source, renamed)
|
| 216 |
-
with h5py.File(renamed, "r+") as f:
|
| 217 |
-
for old, new in plan.items():
|
| 218 |
-
f.move(old, new)
|
| 219 |
-
_writer(renamed, candidate)
|
| 220 |
-
restore_attributes(source, candidate, plan)
|
| 221 |
-
result = validate_migration(source, candidate)
|
| 222 |
-
if sha256(source) != source_sha:
|
| 223 |
-
raise ValueError("Source changed during migration")
|
| 224 |
-
# A hard link publishes the verified file without overwriting a raced output.
|
| 225 |
-
os.link(candidate, output)
|
| 226 |
-
return result
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
def main():
|
| 230 |
-
parser = argparse.ArgumentParser(description=__doc__)
|
| 231 |
-
parser.add_argument("input", type=Path)
|
| 232 |
-
parser.add_argument("output", type=Path)
|
| 233 |
-
args = parser.parse_args()
|
| 234 |
-
os.environ.update(CUDA_VISIBLE_DEVICES="", KERAS_BACKEND="numpy", JAX_PLATFORMS="cpu")
|
| 235 |
-
print(json.dumps(resave_file(args.input, args.output), indent=2))
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
if __name__ == "__main__":
|
| 239 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
twente-microbubblesim/utils.py
DELETED
|
@@ -1,247 +0,0 @@
|
|
| 1 |
-
# SPDX-License-Identifier: Apache-2.0
|
| 2 |
-
"""Reconstruction loading, coordinate, plotting, and ground-truth helpers."""
|
| 3 |
-
|
| 4 |
-
from __future__ import annotations
|
| 5 |
-
|
| 6 |
-
from pathlib import Path
|
| 7 |
-
from typing import Any
|
| 8 |
-
|
| 9 |
-
import numpy as np
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
def custom_map(file: Any, track_index: int = 0) -> dict[str, np.ndarray]:
|
| 13 |
-
"""Return canonical custom names and resolve track-specific pulse metadata.
|
| 14 |
-
|
| 15 |
-
Both legacy and migrated files are supported. R0 and r0 remain distinct;
|
| 16 |
-
ambiguous legacy/canonical duplicates are rejected rather than overwritten.
|
| 17 |
-
"""
|
| 18 |
-
|
| 19 |
-
from migrate_custom_names import canonicalize_custom_names
|
| 20 |
-
|
| 21 |
-
custom = canonicalize_custom_names(
|
| 22 |
-
{element.name: np.asarray(element.data) for element in file.custom}
|
| 23 |
-
)
|
| 24 |
-
prefix = f"track_{track_index}_"
|
| 25 |
-
for key, value in tuple(custom.items()):
|
| 26 |
-
if key.startswith(prefix):
|
| 27 |
-
custom[key.removeprefix(prefix)] = value
|
| 28 |
-
return custom
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
def t_peak_override(custom: dict[str, np.ndarray]) -> np.ndarray:
|
| 32 |
-
"""Return the selected track's finite beamforming peak-time override."""
|
| 33 |
-
|
| 34 |
-
if "t_peak" not in custom:
|
| 35 |
-
raise KeyError("HDF5 file is missing required custom field t_peak")
|
| 36 |
-
t_peak = float(np.asarray(custom["t_peak"]).reshape(-1)[0])
|
| 37 |
-
if not np.isfinite(t_peak):
|
| 38 |
-
raise ValueError("HDF5 custom field t_peak must be finite")
|
| 39 |
-
return np.asarray([t_peak], dtype=np.float32)
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
def load_hdf5(path: str | Path,
|
| 43 |
-
num_frames: int = 1,
|
| 44 |
-
track_index: int = 0,
|
| 45 |
-
) -> tuple[Any, Any, Any, dict[str, np.ndarray]]:
|
| 46 |
-
"""Load one Zea acquisition and its custom elements."""
|
| 47 |
-
|
| 48 |
-
import zea
|
| 49 |
-
|
| 50 |
-
file = zea.File(str(path))
|
| 51 |
-
if track_index < 0 or track_index >= len(file.tracks):
|
| 52 |
-
file.close()
|
| 53 |
-
raise IndexError(
|
| 54 |
-
f"track_index {track_index} is outside [0, {len(file.tracks) - 1}]"
|
| 55 |
-
)
|
| 56 |
-
track = file.tracks[track_index]
|
| 57 |
-
parameters = track.load_parameters()
|
| 58 |
-
data = track.data.raw_data[:num_frames, parameters.selected_transmits, ...]
|
| 59 |
-
return file, parameters, data, custom_map(file, track_index=track_index)
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
def run_bmode(
|
| 64 |
-
path: str | Path,
|
| 65 |
-
config_path: str | Path,
|
| 66 |
-
num_frames: int = 1,
|
| 67 |
-
track_index: int = 0,
|
| 68 |
-
dynamic_range: tuple[float, float] = (-30.0, 0.0),
|
| 69 |
-
xlims_cm: tuple[float, float] | None = (-1.5, 1.5),
|
| 70 |
-
) -> tuple[Any, Any, np.ndarray, dict[str, np.ndarray]]:
|
| 71 |
-
"""Run the configured Zea pipeline and return the image plus acquisition data.
|
| 72 |
-
|
| 73 |
-
``xlims_cm`` controls the lateral field of view used by the DAS
|
| 74 |
-
beamformer. Zea expects these limits in metres, while this public helper
|
| 75 |
-
uses centimetres to match the plotted image axes.
|
| 76 |
-
"""
|
| 77 |
-
|
| 78 |
-
import keras
|
| 79 |
-
import zea
|
| 80 |
-
|
| 81 |
-
file, parameters, data, custom = load_hdf5(
|
| 82 |
-
path, num_frames=num_frames, track_index=track_index
|
| 83 |
-
)
|
| 84 |
-
config = zea.Config.from_path(str(config_path))
|
| 85 |
-
parameters.dynamic_range = tuple(dynamic_range)
|
| 86 |
-
if xlims_cm is not None:
|
| 87 |
-
x_min_cm, x_max_cm = xlims_cm
|
| 88 |
-
if not x_min_cm < x_max_cm:
|
| 89 |
-
raise ValueError("xlims_cm must be ordered as (minimum, maximum)")
|
| 90 |
-
parameters.update(xlims=(x_min_cm * 1e-2, x_max_cm * 1e-2))
|
| 91 |
-
pipeline = zea.Pipeline.from_config(config)
|
| 92 |
-
inputs = pipeline.prepare_parameters(
|
| 93 |
-
parameters, t_peak=t_peak_override(custom)
|
| 94 |
-
)
|
| 95 |
-
inputs = {pipeline.key: data, **inputs}
|
| 96 |
-
image = keras.ops.convert_to_numpy(pipeline(**inputs)[pipeline.output_key])
|
| 97 |
-
image = np.asarray(keras.ops.squeeze(image))
|
| 98 |
-
image = np.asarray(
|
| 99 |
-
zea.display.to_8bit(
|
| 100 |
-
image,
|
| 101 |
-
dynamic_range=parameters.dynamic_range))
|
| 102 |
-
return file, parameters, image, custom
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
def image_extent_cm(parameters: Any,
|
| 106 |
-
custom: dict[str,
|
| 107 |
-
np.ndarray],
|
| 108 |
-
image_shape: tuple[int,
|
| 109 |
-
int],
|
| 110 |
-
xlims_cm: tuple[float, float] | None = None,
|
| 111 |
-
) -> tuple[float,
|
| 112 |
-
float,
|
| 113 |
-
float,
|
| 114 |
-
float]:
|
| 115 |
-
"""Calculate an x/z extent in centimeters for an image-shaped array."""
|
| 116 |
-
|
| 117 |
-
height, width = image_shape[-2:]
|
| 118 |
-
domain_width = float(np.asarray(custom.get("domain_width", np.nan)).reshape(-1)[0])
|
| 119 |
-
domain_depth = float(np.asarray(custom.get("domain_depth", np.nan)).reshape(-1)[0])
|
| 120 |
-
if not np.isfinite(domain_width):
|
| 121 |
-
geometry = np.asarray(parameters.probe_geometry)
|
| 122 |
-
domain_width = float(np.max(geometry[:, 0]) - np.min(geometry[:, 0]))
|
| 123 |
-
if not np.isfinite(domain_depth):
|
| 124 |
-
domain_depth = float(parameters.sound_speed) * \
|
| 125 |
-
image_shape[-2] / (2.0 * float(parameters.sampling_frequency))
|
| 126 |
-
if xlims_cm is None:
|
| 127 |
-
x_extent_cm = (-0.5 * domain_width * 100.0,
|
| 128 |
-
0.5 * domain_width * 100.0)
|
| 129 |
-
else:
|
| 130 |
-
x_extent_cm = tuple(float(value) for value in xlims_cm)
|
| 131 |
-
if not x_extent_cm[0] < x_extent_cm[1]:
|
| 132 |
-
raise ValueError("xlims_cm must be ordered as (minimum, maximum)")
|
| 133 |
-
return (*x_extent_cm, 0.0, domain_depth * 100.0)
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
def bubble_coordinates_cm(
|
| 137 |
-
custom: dict[str, np.ndarray]) -> tuple[np.ndarray, np.ndarray]:
|
| 138 |
-
"""Return finite bubble x/z coordinates in centimeters."""
|
| 139 |
-
|
| 140 |
-
if "bubble_x" not in custom or "bubble_z" not in custom:
|
| 141 |
-
return np.empty(0, dtype=np.float32), np.empty(0, dtype=np.float32)
|
| 142 |
-
x = np.asarray(custom["bubble_x"], dtype=np.float32).reshape(-1)
|
| 143 |
-
z = np.asarray(custom["bubble_z"], dtype=np.float32).reshape(-1)
|
| 144 |
-
valid = np.isfinite(x) & np.isfinite(z)
|
| 145 |
-
return x[valid] * 100.0, z[valid] * 100.0
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
def plot_bmode(
|
| 149 |
-
image: np.ndarray,
|
| 150 |
-
extent_cm: tuple[float, float, float, float],
|
| 151 |
-
output: str | Path,
|
| 152 |
-
bubble_x_cm: np.ndarray | None = None,
|
| 153 |
-
bubble_z_cm: np.ndarray | None = None,
|
| 154 |
-
show_bubbles: bool = True,
|
| 155 |
-
title: str | None = None,
|
| 156 |
-
) -> None:
|
| 157 |
-
"""Save a B-mode image with centimeter axes and optional GT bubbles."""
|
| 158 |
-
|
| 159 |
-
import matplotlib.pyplot as plt
|
| 160 |
-
|
| 161 |
-
image = np.asarray(image)
|
| 162 |
-
if image.ndim != 2:
|
| 163 |
-
raise ValueError(f"Expected a 2-D B-mode image, got shape {image.shape}")
|
| 164 |
-
|
| 165 |
-
x_min, x_max, z_min, z_max = extent_cm
|
| 166 |
-
fig, ax = plt.subplots(figsize=(5, 12), constrained_layout=True)
|
| 167 |
-
ax.imshow(
|
| 168 |
-
image,
|
| 169 |
-
cmap="gray",
|
| 170 |
-
origin="upper",
|
| 171 |
-
aspect="auto",
|
| 172 |
-
extent=(x_min, x_max, z_max, z_min),
|
| 173 |
-
interpolation="nearest",
|
| 174 |
-
vmin=0,
|
| 175 |
-
vmax=255,
|
| 176 |
-
)
|
| 177 |
-
if show_bubbles and bubble_x_cm is not None and bubble_z_cm is not None:
|
| 178 |
-
ax.scatter(
|
| 179 |
-
bubble_x_cm,
|
| 180 |
-
bubble_z_cm,
|
| 181 |
-
facecolors="none",
|
| 182 |
-
edgecolors="red",
|
| 183 |
-
linewidths=0.8,
|
| 184 |
-
s=28,
|
| 185 |
-
label="Bubble ground truth",
|
| 186 |
-
)
|
| 187 |
-
ax.legend(loc="upper right")
|
| 188 |
-
ax.set_xlabel("Lateral position x [cm]")
|
| 189 |
-
ax.set_ylabel("Depth z [cm]")
|
| 190 |
-
if title:
|
| 191 |
-
ax.set_title(title)
|
| 192 |
-
ax.set_xlim(x_min, x_max)
|
| 193 |
-
ax.set_ylim(z_max, z_min)
|
| 194 |
-
fig.savefig(output, dpi=150)
|
| 195 |
-
plt.close(fig)
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
def plot_gt_label(
|
| 199 |
-
label: np.ndarray,
|
| 200 |
-
extent_cm: tuple[float, float, float, float],
|
| 201 |
-
output: str | Path,
|
| 202 |
-
title: str | None = None,
|
| 203 |
-
) -> None:
|
| 204 |
-
"""Save a ground-truth label with the same physical axes as B-mode."""
|
| 205 |
-
|
| 206 |
-
import matplotlib.pyplot as plt
|
| 207 |
-
|
| 208 |
-
x_min, x_max, z_min, z_max = extent_cm
|
| 209 |
-
fig, ax = plt.subplots(figsize=(5, 12), constrained_layout=True)
|
| 210 |
-
ax.imshow(
|
| 211 |
-
label,
|
| 212 |
-
cmap="gray",
|
| 213 |
-
origin="upper",
|
| 214 |
-
aspect="auto",
|
| 215 |
-
extent=(x_min, x_max, z_max, z_min),
|
| 216 |
-
interpolation="nearest",
|
| 217 |
-
vmin=0.0,
|
| 218 |
-
vmax=1.0,
|
| 219 |
-
)
|
| 220 |
-
ax.set_xlabel("Lateral position x [cm]")
|
| 221 |
-
ax.set_ylabel("Depth z [cm]")
|
| 222 |
-
if title:
|
| 223 |
-
ax.set_title(title)
|
| 224 |
-
ax.set_xlim(x_min, x_max)
|
| 225 |
-
ax.set_ylim(z_max, z_min)
|
| 226 |
-
fig.savefig(output, dpi=150)
|
| 227 |
-
plt.close(fig)
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
def bubble_label(
|
| 231 |
-
image_shape: tuple[int, int],
|
| 232 |
-
extent_cm: tuple[float, float, float, float],
|
| 233 |
-
bubble_x_cm: np.ndarray,
|
| 234 |
-
bubble_z_cm: np.ndarray,
|
| 235 |
-
) -> np.ndarray:
|
| 236 |
-
"""Create a hard binary bubble label image."""
|
| 237 |
-
|
| 238 |
-
height, width = image_shape
|
| 239 |
-
x_min, x_max, z_min, z_max = extent_cm
|
| 240 |
-
label = np.zeros((height, width), dtype=np.float32)
|
| 241 |
-
x_pixels = (bubble_x_cm - x_min) / (x_max - x_min) * (width - 1)
|
| 242 |
-
z_pixels = (bubble_z_cm - z_min) / (z_max - z_min) * (height - 1)
|
| 243 |
-
x_pixels = np.rint(x_pixels).astype(int)
|
| 244 |
-
z_pixels = np.rint(z_pixels).astype(int)
|
| 245 |
-
valid = (x_pixels >= 0) & (x_pixels < width) & (z_pixels >= 0) & (z_pixels < height)
|
| 246 |
-
label[z_pixels[valid], x_pixels[valid]] = 1.0
|
| 247 |
-
return label
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|