def __init__(self, image): GenModel.__init__(self) self.__image = image # 4 corner handles, 2 (potential) anchor handles per line ini_shape = image.decoded_image.shape max_dim = float(max(ini_shape)) x = ini_shape[1] / max_dim y = ini_shape[0] / max_dim self.__align_handles = [Vec2(-x, -y), Vec2(x, -y), Vec2(x, y), Vec2(-x, y)] + [None] * 8 self.__dim_handles = [self.__align_handles[0], self.__align_handles[1], self.align_handles[1], self.align_handles[2]] self.__placeholder_dim_values = [100, 100] self.__dim_values = [None, None] self.update_matricies()
def __init__(self, image: ImageLayer) -> None: GenModel.__init__(self) self.combo_adapter = KeypointAlignmentModelQAI(self) self.__keypoints: List[AlignKeypoint] = [] self.__image = image
def __init__(self, image): GenModel.__init__(self) self.ra = RectAlignmentModel(image) self.kp = KeypointAlignmentModel(image)
def __init__(self, image): GenModel.__init__(self) self.combo_adapter = KeypointAlignmentModelQAI(self) self.__keypoints = [] self.__image = image