Closed tlnagy closed 4 years ago
I missed this section in the documentation:
The parameter img can either be a single image, or a tuple of multiple images. In case img is a tuple of images, its elements will be assumed to be conceptually connected. Consequently, all images in the tuple will take the exact same path through the pipeline; even when randomness is involved. This is useful for the purpose of image segmentation, for which the input and output are both images that need to be transformed exactly the same way.
I have boolean masks for my images for semantic segmentation that I would like to transform identically to the raw image so that I can augment my training set.
Is there any way to deterministically apply the same transformations to both the raw image and the mask?