zea.beamform.phantoms¶
Functions
|
Generates scatterer positions based on the Fibonacci sphere algorithm. |
|
Returns a scatterer phantom for ultrasound simulation tests. |
|
Generates scatterer positions based on the golden ratio spiral. |
|
Generates scatterer positions based on a Lissajous curve. |
|
Generates scatterer positions based on the Rose curve. |
- zea.beamform.phantoms.fibonacci(alpha=0.5, num_scatterers=100)[source]¶
Generates scatterer positions based on the Fibonacci sphere algorithm.
- Parameters:
num_scatterers (int) – Number of scatterer points to generate.
alpha (float) – Scaling factor for the z-coordinate.
- Returns:
The scatterer positions of shape (num_scatterers, 3).
- Return type:
ndarray
- zea.beamform.phantoms.fish()[source]¶
Returns a scatterer phantom for ultrasound simulation tests.
- Returns:
The scatterer positions of shape (104, 3).
- Return type:
ndarray
- zea.beamform.phantoms.golden_ratio(num_scatterers=100)[source]¶
Generates scatterer positions based on the golden ratio spiral.
- Parameters:
num_scatterers (int) – Number of scatterer points to generate.
- Returns:
The scatterer positions of shape (num_scatterers, 3).
- Return type:
ndarray
- zea.beamform.phantoms.lissajous(a=3, b=2, delta=1.5707963267948966, num_scatterers=200)[source]¶
Generates scatterer positions based on a Lissajous curve.
- Parameters:
a (int) – Frequency parameter for the x-coordinate.
b (int) – Frequency parameter for the z-coordinate.
num_scatterers (int) – Number of scatterer points to generate.
- Returns:
The scatterer positions of shape (num_scatterers, 3).
- Return type:
ndarray
- zea.beamform.phantoms.rose(k=3, num_scatterers=80)[source]¶
Generates scatterer positions based on the Rose curve.
- Parameters:
k (int) – The frequency parameter of the rose curve.
num_scatterers (int) – The number of scatterers to generate along the curve.
- Returns:
The scatterer positions of shape (num_scatterers, 3).
- Return type:
ndarray