neuron_morphology.transforms.transform_base
¶
Module Contents¶
Classes¶
TransformBase |
Abstract base class for implementing swc transforms. |
-
class
neuron_morphology.transforms.transform_base.
TransformBase
¶ Bases:
abc.ABC
Abstract base class for implementing swc transforms. Each child class should implement these methods.
-
transform_morphology
(self)¶ Apply this transform to all nodes in a morphology.
Returns: - A Morphology
-
transform
(self)¶ Apply this transform to (3,) point or (3,n) array-like of points.
Returns: - numpy.ndarray with same shape as input
-