LSST Applications  21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
Classes | Functions | Variables
lsst.afw.geom.transformConfig Namespace Reference

Classes

class  IdentityTransformConfig
 
class  OneTransformConfig
 
class  AffineTransformConfig
 
class  RadialTransformConfig
 
class  MultiTransformConfig
 
class  TransformConfig
 

Functions

def identityFactory (config)
 
def invertingFactory (config)
 
def affineFactory (config)
 
def radialFactory (config)
 
def multiFactory (config)
 

Variables

 transformRegistry
 

Function Documentation

◆ affineFactory()

def lsst.afw.geom.transformConfig.affineFactory (   config)
Make an affine ``Transform``

Definition at line 112 of file transformConfig.py.

112 def affineFactory(config):
113  """Make an affine ``Transform``
114  """
115  linear = numpy.array(config.linear)
116  linear.shape = (2, 2)
117  translation = numpy.array(config.translation)
118  return makeTransform(lsst.geom.AffineTransform(linear, translation))
119 
120 
121 affineFactory.ConfigClass = AffineTransformConfig
122 transformRegistry.register("affine", affineFactory)
123 
124 
An affine coordinate transformation consisting of a linear transformation and an offset.
std::shared_ptr< TransformPoint2ToPoint2 > makeTransform(lsst::geom::AffineTransform const &affine)
Wrap an lsst::geom::AffineTransform as a Transform.

◆ identityFactory()

def lsst.afw.geom.transformConfig.identityFactory (   config)
Make an identity ``Transform``

Definition at line 56 of file transformConfig.py.

56 def identityFactory(config):
57  """Make an identity ``Transform``
58  """
59  return makeIdentityTransform()
60 
61 
62 identityFactory.ConfigClass = IdentityTransformConfig
63 transformRegistry.register("identity", identityFactory)
64 
65 
std::shared_ptr< TransformPoint2ToPoint2 > makeIdentityTransform()
Trivial Transform x → x.

◆ invertingFactory()

def lsst.afw.geom.transformConfig.invertingFactory (   config)
Invert a ``Transform`` specified by config.

Definition at line 79 of file transformConfig.py.

79 def invertingFactory(config):
80  """Invert a ``Transform`` specified by config.
81  """
82  return config.transform.apply().inverted()
83 
84 
85 invertingFactory.ConfigClass = OneTransformConfig
86 transformRegistry.register("inverted", invertingFactory)
87 
88 

◆ multiFactory()

def lsst.afw.geom.transformConfig.multiFactory (   config)
Concatenate multiple ``Transforms``

Definition at line 170 of file transformConfig.py.

170 def multiFactory(config):
171  """Concatenate multiple ``Transforms``
172  """
173  transformKeys = sorted(config.transformDict.keys())
174  transformList = [config.transformDict[key].transform.apply()
175  for key in transformKeys]
176 
177  # Can't use then(self, other) directly because no single Transform class
178  def concat(transform1, transform2):
179  return transform1.then(transform2)
180 
181  return functools.reduce(concat, transformList)
182 
183 
184 multiFactory.ConfigClass = MultiTransformConfig
185 transformRegistry.register("multi", multiFactory)
186 
187 

◆ radialFactory()

def lsst.afw.geom.transformConfig.radialFactory (   config)
Make a radial ``Transform``

Definition at line 149 of file transformConfig.py.

149 def radialFactory(config):
150  """Make a radial ``Transform``
151  """
152  return makeRadialTransform(config.coeffs._list)
153 
154 
155 radialFactory.ConfigClass = RadialTransformConfig
156 transformRegistry.register("radial", radialFactory)
157 
158 
std::shared_ptr< TransformPoint2ToPoint2 > makeRadialTransform(std::vector< double > const &coeffs)
A purely radial polynomial distortion.

Variable Documentation

◆ transformRegistry

lsst.afw.geom.transformConfig.transformRegistry
Initial value:
2 
3 )
def makeRegistry(doc, configBaseType=Config)
Definition: registry.py:336

Definition at line 35 of file transformConfig.py.