Skip to content

Augmentation Parameters.csv

fgdfgfthgr-fox edited this page Mar 2, 2026 · 8 revisions

Advanced user only, you can safely skips this part of wiki if it's the first time you are using VST!

This tool use two csv files for storing the parameters of image augmentations. One for isotropic resolution dataset while the other one for anisotropic (default).

What's image augmentation?

A technique to expand the variety of dataset.

When number (and size) of images to train the network are few, the network could over-fit on your training images, and have bad performance on images it didn't see before.

By apply various techniques including crop, flip, rotation and so on, you can generate many variations of your training images, which helps to overcome the over-fit issue.

Most of the time you don't need to modify the augmentation.csv file. VST included Augmentation Parameters Anisotropic.csv and Augmentation Parameters Isotropic should be sufficient.

Available Settings:

AugCsv

Rotate xy/xz/yz

Rotate the image at xy/xz/yz plane respectively, with a random angle between Low Bound and High Bound.

Note if your images are anisotropic (depth resolution is different to xy resolution), you should not enable xz/yz plane rotation.

Rescaling (Zoom in or out)

Each cropped patch can be randomly scaled with a scale factor between Low Bound and High Bound.

Note this won't affect the size of each cropped patches.

Lower than 1 is zoom in, while higher than one is zoom out.

Edge Replicate Pad

Crops the input tensors to a smaller version, and replicate pad the lost region. Do not turn this on, this is just for testing purpose.

Vertical and Horizontal and Depth Flips

Self Explanatory.

Simulate Low Resolution

Simulate lower imaging resolution by down-sampling using nearest-neighbor interpolation and then up-sampling using cubic interpolation.

Gaussian Noise

Add Gaussian noise with a mean of 0 and a std of 1, with a strength between low bound and high bound.

Gaussian Blur

Apply 3D Gaussian blur. Its low bound and high bound refers to the range of sigma of the blur. While its value is the kernel size, higher than 3 could slow down augmentation process significantly.

Adjust Contrast/Gamma/Brightness

Self Explanatory. Do note that since the images are normalised to have a mean of 0 and std of 1, changing contrast is actually just multiplying the image by a value; changing gamma is first scale image to be between 0 and 1, apply gamma adjustment, then scale back; changing brightness is just add value to the entire image.

Gradient Gamma/Contrast

Apply gamma or contrast adjustment to with a gradient pattern. From Low Bound at one (random) side of the image to High Bound at the opposite side of the image.

Used to simulate uneven staining throughout the sample.

Salt And Pepper

Add salt and pepper noise. The proportion of pixels affected are between Low Bound and High Bound.

Label Blur and Contour Blur

Blur the Label and the contour Label a little bit. Please do not enable them as they have shown to be ineffective.