def __remove_out_of_image(cls, img_aug_polys: ImgAugPolygons, fully: bool = True, partly: bool = False) -> ImgAugPolygons: result = img_aug_polys.copy() result.remove_out_of_image(fully=fully, partly=partly) return result
def __clip_out_of_image(cls, img_aug_polys: ImgAugPolygons) -> ImgAugPolygons: result = img_aug_polys.copy() result.clip_out_of_image() return result