affine
navis.transforms.affine.BaseTransform #
Abstract base class for transforms.
If the transform is invertible, implement via neg method.
Source code in navis/transforms/base.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |
append #
Append another transform to this one.
This is used to try to concatenate transforms of the same type into a single step to speed things up (e.g. for CMTK transforms). If that's not possible or not useful, must raise a NotImplementedError.
Source code in navis/transforms/base.py
47 48 49 50 51 52 53 54 | |
check_if_possible #
Test if running the transform is possible.
Source code in navis/transforms/base.py
56 57 58 | |
copy abstractmethod #
Return copy.
Source code in navis/transforms/base.py
60 61 62 63 | |
xform abstractmethod #
Return copy.
Must accept a (N, 3) numpy array as first input and return the transformed (N, 3) points as sole output.s
Source code in navis/transforms/base.py
65 66 67 68 69 70 71 72 | |