HoleMakerBounded

HoleMakerBounded randomly selects the region to be replaced. The only condition is that the region can not be outbounded of the image.


source

HoleMakerBounded

 HoleMakerBounded (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).

source

HoleMakerBounded.get_hole

 HoleMakerBounded.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.