morphoclass.transforms.augmentors.random_stretching module

Implementation of the RandomStretching transform.

class morphoclass.transforms.augmentors.random_stretching.RandomStretching(d_scale_x=0.0, d_scale_y=0.0, d_scale_z=0.0)

Bases: object

Randomly scale coordinates along all axes.

Parameters
  • d_scale_x (float) – The range for the random scale along the x-axis. The generated random scale will be in the range (1 - d_scale_x, 1 + d_scale_x).

  • d_scale_y (float) – The range for the random scale along the y-axis. The generated random scale will be in the range (1 - d_scale_y, 1 + d_scale_y).

  • d_scale_z (float) – The range for the random scale along the z-axis. The generated random scale will be in the range (1 - d_scale_z, 1 + d_scale_z).