RegionModifier

The RegionModifier component defines how to apply traditional augments to the regions selected to be augmented.

source

RegionModifier

 RegionModifier (taug:albumentations.core.composition.Compose=None)

Defines the traditional augmentations to be applied.

Type Default Details
taug Compose None The Compose of the transformations to be applied.

source

RegionModifier.apply

 RegionModifier.apply (image_region:numpy.ndarray,
                       mask_region:numpy.ndarray)

Applies the augmnentations to the regions. Those augmnetations can not modify their shapes.

Type Details
image_region ndarray The region of the image to be augmented.
mask_region ndarray The region of the mask to be augmented.