navis 1.4.0
  • Install
  • Quickstart
  • Tutorials
  • API
  • Changelog
  • Github
  • Ecosystem
  • Site
    • Page
        • navis.transforms.CMTKtransform
          • CMTKtransform
            • CMTKtransform.__init__()

    navis.transforms.CMTKtransform¶

    class navis.transforms.CMTKtransform(regs, directions='forward', threads=None)[source]¶

    CMTK transforms of 3D spatial data.

    Requires CMTK to be installed.

    Parameters:
    • regs (str | list of str) – Path(s) to CMTK transformations(s).

    • directions ("forward" | "inverse" | list thereof) – Direction of transformation. Must provide one direction per reg.

    • threads (int, optional) – Number of threads to use.

    Examples

    >>> from navis import transforms
    >>> tr = transforms.cmtk.CMTKtransform('/path/to/CMTK_directory.list')
    >>> tr.xform(points) 
    
    __init__(regs, directions='forward', threads=None)[source]¶

    Methods

    __init__(regs[, directions, threads])

    append(transform[, direction])

    Add another transform.

    check_if_possible([on_error])

    Check if this transform is possible.

    copy()

    Return copy.

    from_file(filepath, **kwargs)

    Generate CMTKtransform from file.

    make_args([affine_only])

    Generate arguments passed to subprocess.

    parse_cmtk_output(output[, fail_value])

    Parse CMTK output.

    xform(points[, affine_only, affine_fallback])

    Xform data.

    Attributes

    regargs

    Generate regargs.

    Back to top

    Source

    © Copyright 2018, Philipp Schlegel.
    Created using Sphinx 5.3.0.