Evizero / Augmentor.jl

A fast image augmentation library in Julia for machine learning.
https://evizero.github.io/Augmentor.jl/
Other
137 stars 48 forks source link

Apply same transformation to mask? #59

Closed tlnagy closed 4 years ago

tlnagy commented 4 years ago

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?

tlnagy commented 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.