-
Notifications
You must be signed in to change notification settings - Fork 0
Augmentations
The depth attenuation augmentation proposed by Østvik et al. (2021) is designed to mimic the loss of energy of the ultrasound wave energy as it moves through the body, which results in a gradual drop in intensity with distance from the probe. In Østvik et al. (2021), this is implemented as applying a "varying degree of intensity attenuation along the radial direction". Guided by the visualizations of the attenuation maps in their paper, and knowing that the intensity of the wave should decrease exponentially with distance, we implement the augmentation as follows.
Assuming the ultrasound fan is oriented such that the probe is positioned at the middle-top of the image, we create an attenuation map that is used to scale the intensity of each pixel of the ultrasound scan mask

The resulting image
The attenuation map
where
To mimic acoustic shadows that occur air or tissue blocks acoustic waves from penetrating deeper, the Gaussian shadow augmentation proposed by Smistad et al. (2018) generates and applies two-dimensional Gaussian shadows with randomly selected parameters. The shadow centre (
Finally, the augmented image
An example of a Gaussian shadow is shown below.

Acoustic haze is a semi-static noise band that is sometimes present in ultrasound images. To mimic this, Østvik et al. (2021) proposed a haze artifact augmentation that applies static with a Gaussian profile at a fixed distance (radius) from the probe. Guided by their illustrations, we implement this augmentation by generating a haze image
For a given haze radius
where

Speckle noise is caused by interference between ultrasound waves. The speckle pattern observed in images captured using machines from different vendors often differs due to image enhancement and various filtering methods. As described in Østvik et al. (2021) we apply a bilateral filter with randomly sampled parameter values to reduce the effect of these speckle patterns. We use the bilateral filter implementation from scikit-image. The
