navis.transforms.templates.TemplateRegistry.register_transform¶
- TemplateRegistry.register_transform(transform, source, target, transform_type, skip_existing=True, weight=1)[source]¶
Register a transform.
- Parameters:
transform (subclass of BaseTransform | TransformSequence) – A transform (AffineTransform, CMTKtransform, etc.) or a TransformSequence.
source (str) – Source for forward transform.
target (str) – Target for forward transform. Ignored for mirror transforms.
transform_type ("bridging" | "mirror") – Type of transform.
skip_existing (bool) – If True will skip if transform is already in registry.
weight (int) – Giving a transform a lower weight will make it preferable when plotting bridging sequences.
See also
register_transformfile
If you want to register a file instead of an already constructed transform.