HoleMakerRandom
HoleMakerRandom
randomly selects the region to be replaced.
HoleMakerRandom
HoleMakerRandom (hole_size:tuple=(100, 100))
Defines the size of the hole.
Type | Default | Details | |
---|---|---|---|
hole_size | tuple | (100, 100) | The size of the hole in a tuple like (y, x). |
HoleMakerRandom.get_hole
HoleMakerRandom.get_hole (mask:numpy.ndarray)
Defines how to make the hole.
Type | Details | |
---|---|---|
mask | ndarray | The mask associated with the image where the hole is going to be made. |