- class navis.transforms.H5transform(f, direction='forward', level=-1, cache=False, full_ingest=False)¶
Hdf5 transform of 3D spatial data.
See here for specifications of the format.
f (str) – Path to Hdf5 transformation.
direction ("forward" | "inverse") – Direction of transformation.
level (int, optional) – For Hdf5 files with deformation fields at multiple resolutions: what level of detail to use. Negative values go backwards from the highest available resolution (-1 = highest, -2 = second highest, etc). Ignored if only a single deformation field present.
cache (bool) – If True, we will cache the deformation field for subsequent future transforms. This will speed up future calculations in the future but comes at a memory cost.
full_ingest (bool) – If True, will read and cache the full deformation field at initialization. This additional upfront cost can pay off if you are about to make many transforms across the volume.
- __init__(f, direction='forward', level=-1, cache=False, full_ingest=False)¶
__init__(f[, direction, level, cache, ...])
Append another transform to this one.
Test if running the transform is possible.
Generate H5transform from file.
Fully ingest the deformation field.
Cache deformation field for given bounding box.
xform(points[, affine_fallback, force_deform])
Whether to cache the deformation field.