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.transformImage.inverseImage.stars_coords
- Parameters:
stars (bool, optional) β whether to apply transform to
Image.stars_coords, by default Truedata (bool, optional) β whether to apply transform to
Image.data, by default Trueinverse (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