コード例 #1
0
ファイル: segmentation.py プロジェクト: cm107/common_utils
    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
コード例 #2
0
ファイル: segmentation.py プロジェクト: cm107/common_utils
    def __clip_out_of_image(cls,
                            img_aug_polys: ImgAugPolygons) -> ImgAugPolygons:
        result = img_aug_polys.copy()
        result.clip_out_of_image()

        return result