HoleMakerROI

HoleMakerROI selects the region to be replaced using the information of that region. In this case, a whole group of pixels of the same class is selected and grouped in the region.


source

HoleMakerROI

 HoleMakerROI (ROI_class:int=-1, ROI_area:int=25, delta_ratio:float=None)

Defines the size of the hole.

Type Default Details
ROI_class int -1 The class that is going to be targeted to select as a ROI (region of interest).
ROI_area int 25 The minimum area to be selected as a ROI.
delta_ratio float None The ratio of pixels of the ROI that are going to be used. A ratio of 1 takes all the ROI pixels, a ratio < 1 crops the ROI and a ratio > 1 adds more pixels to the ROI. A None ratio takes a random value [0.9, 1.1) in each usage.

source

HoleMakerROI.get_hole

 HoleMakerROI.get_hole (mask:numpy.ndarray)

Defines how to make the hole.

Type Details
mask ndarray The mask associated with the image where the holes are going to be made.