HoleMakerTechnique

The HoleMakerTechnique components define how to select the region to be replaced.

This is an abstract class that can not be used directly. In order to use it, it is necessary to use its inherited classes.


source

HoleMakerTechnique

 HoleMakerTechnique (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

HoleMakerTechnique.get_hole

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