LSSTApplications  18.0.0+46,18.0.0+93,19.0.0,19.0.0+1,19.0.0+2,19.0.0+3,19.0.0+4,19.0.0-1-g20d9b18+2,19.0.0-1-g3dc8cbe+2,19.0.0-1-g425ff20,19.0.0-1-g5549ca4,19.0.0-1-g580fafe+2,19.0.0-1-g5db401e+3,19.0.0-1-g6fe20d0+1,19.0.0-1-g7011481+2,19.0.0-1-g8c57eb9+2,19.0.0-1-g9828021+2,19.0.0-1-gb5175dc+2,19.0.0-1-gd7f3e1b+2,19.0.0-1-gdc0e4a7+2,19.0.0-1-ge272bc4+2,19.0.0-2-g0d9f9cd+2,19.0.0-2-g1c703f9ef+1,19.0.0-2-g3d9e4fb2+2,19.0.0-2-gd955cfd+2,19.0.0-3-g2d13df8,19.0.0-3-g63079e6+2,19.0.0-7-g8a434f2+1,19.0.0-7-gf796fef9+3,w.2019.49
LSSTDataManagementBasePackage
Classes | Functions | Variables
lsst.afw.geom.transformConfig Namespace Reference

Classes

class  AffineTransformConfig
 
class  IdentityTransformConfig
 
class  MultiTransformConfig
 
class  OneTransformConfig
 
class  RadialTransformConfig
 
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 113 of file transformConfig.py.

113 def affineFactory(config):
114  """Make an affine ``Transform``
115  """
116  linear = numpy.array(config.linear)
117  linear.shape = (2, 2)
118  translation = numpy.array(config.translation)
119  return makeTransform(lsst.geom.AffineTransform(linear, translation))
120 
121 
122 affineFactory.ConfigClass = AffineTransformConfig
123 transformRegistry.register("affine", affineFactory)
124 
125 
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 57 of file transformConfig.py.

57 def identityFactory(config):
58  """Make an identity ``Transform``
59  """
60  return makeIdentityTransform()
61 
62 
63 identityFactory.ConfigClass = IdentityTransformConfig
64 transformRegistry.register("identity", identityFactory)
65 
66 
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 80 of file transformConfig.py.

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

◆ multiFactory()

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

Definition at line 171 of file transformConfig.py.

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

◆ radialFactory()

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

Definition at line 150 of file transformConfig.py.

150 def radialFactory(config):
151  """Make a radial ``Transform``
152  """
153  return makeRadialTransform(config.coeffs._list)
154 
155 
156 radialFactory.ConfigClass = RadialTransformConfig
157 transformRegistry.register("radial", radialFactory)
158 
159 
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 36 of file transformConfig.py.