AffineTransform#

class prose.blocks.alignment.AffineTransform(stars=True, data=True, inverse=False, output_shape=None, name=None, rotation=None, translation=None, scale=None, same_shape=True)#

Apply an affine transformation to image and/or stars

read

  • rotation : Image.header['TROT']

  • translation : Image.header['TDX'], Image.header['TDY']

  • scale : Image.header['TSCALEX'], Image.header['TSCALEY']

write

  • Image.transform

  • Image.inverse

  • Image.stars_coords

Parameters:
  • stars (bool, optional) – whether to apply transform to Image.stars_coords, by default True

  • data (bool, optional) – whether to apply transform to Image.data, by default True

  • inverse (bool, optional) – whether to apply inverse transform, by default False

  • output_shape (tuple-like, optional) – shape of the transformed image. By default None, conserving the orignial shape