← Back to all transforms

RandomGravel

Description

Add gravels.

    Args:
        gravel_roi: (top-left x, top-left y,
            bottom-right x, bottom right y). Should be in [0, 1] range
        number_of_patches: no. of gravel patches required

    Targets:
        image

    Image types:
        uint8, float32

    Reference:
        https://github.com/UjjwalSaxena/Automold--Road-Augmentation-Library

    

Parameters

  • p: float (default: 0.5)
  • gravel_roi: tuple[float, float, float, float] (default: (0.1, 0.4, 0.9, 0.9))
  • number_of_patches: int (default: 2)

Targets

  • Image

Try it out

Original Image (width = 484, height = 733):

Original

Transformed Image:

Transform not yet applied