Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Example: Doppler Velocity Estimation

Crate: kwavers
Run: cargo run -p kwavers --example doppler_velocity_estimation
Source: crates/kwavers/examples/doppler_velocity_estimation.rs

What This Example Demonstrates

This example shows a full Doppler processing path for vascular imaging. It starts from a vascular preset, synthesizes complex I/Q ensembles, estimates velocity with the Kasai autocorrelation method, suppresses clutter, and forms a color-flow style result.

ComponentAPIValue
PresetAutocorrelationConfig::vascular()Builds a 7.5 MHz / 5 kHz PRF vascular configuration
Signal modelArray3<Complex64>Stores ensemble, depth, and beam I/Q samples for the synthetic flow field
EstimatorAutocorrelationEstimatorApplies autocorrelation velocity estimation and wall filtering

Key Code Snippet

let doppler_config = AutocorrelationConfig::vascular();

println!(
    "  └─ Center frequency: {} MHz",
    doppler_config.center_frequency / 1e6
);
println!("  └─ PRF: {} kHz", doppler_config.prf / 1e3);
println!(
    "  └─ Ensemble size: {} pulses",
    doppler_config.ensemble_size

Expected Output (if applicable)

The console prints imaging parameters, Nyquist velocity, processing stages, and summary statistics for the estimated flow field.

Book Chapter

← Sensors and Measurements