Manual Transforms

Interface to manually edit layer affine transforms

  • Talley Lambert

License PyPI Python Version tests codecov

Interface to manually edit layer affine transforms.

  • express rotations as quaternion, euler angle, or axis + angle.
  • allows rotation around arbitrary origin
  • currently, focusing on rigid rotations
  • Alt-Drag to rotate a layer independently of the rest.
  • image resampling (i.e. "apply" the transformation to create new dataset that can be saved)

Plugin Preview

caveats:

  • only works on 3D Image layers for now, open a feature request for other dims/layers.
  • will likely result in "Non-orthogonal slicing is being requested" warnings in 2D view.

Try it out

import napari

v = napari.Viewer()
v.dims.ndisplay = 3
v.open_sample('napari', 'cells3d')
v.window.add_plugin_dock_widget('napari-manual-transforms')

napari.run()

Installation

You can install napari-manual-transforms via pip:

pip install napari-manual-transforms

To install latest development version :

pip install git+https://github.com/tlambert03/napari-manual-transforms.git

License

Distributed under the terms of the BSD-3 license, "napari-manual-transforms" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Version:

  • 0.0.3

Last updated:

  • 2022-04-29

First released:

  • 2022-04-28

License:

  • BSD-3-Clause

Supported data:

  • Information not submitted

Plugin type:

Open extension:

Save extension:

Python versions supported:

Operating system:

  • Information not submitted

Requirements:

  • magicgui
  • napari
  • numpy
  • pytransform3d
  • qtpy
  • scipy
  • vispy
  • napari ; extra == 'testing'
  • pyqt5 ; extra == 'testing'
  • pytest ; extra == 'testing'
  • pytest-cov ; extra == 'testing'
  • pytest-qt ; extra == 'testing'
  • tox ; extra == 'testing'
Website by the napari team, original design by CZI. Go to napari main website.