How can I apply a random translation of up to k
pixels, applying at the same time a reflection filling in the additional pixels? I was thinking about using a padding of k
with reflection in combination with RandomCropSize
, but perhaps there exists a wiser way to do it.