Skip to content

HiPCTProject/ngregister

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ngregister

Start a local Neuroglancer instance with pre-configured shortcuts for custom registration actions:

  • Translate the active layer at the cursor πŸ–±οΈ to the center 🎯 of the view with <t>.
  • Place a translation landmark πŸ“ at the cursor πŸ–±οΈ (in the fixed volume) with <y>,
    and translate the active layer at the position of the cursor πŸ–±οΈ to the landmark πŸ“ with <shift+t>.
    You can delete manually the "__LANDMARK__" layer when done.
  • Rotate from the center 🎯 of the view around the absolute axis $z$ (resp. $x$ and $y$) clockwise πŸ”ƒ with <i> (resp. <j> and <k>).
    Rotate counter-clockwise πŸ”„ with <shift+i>, <shift+j>, <shift+k>.

How to use

Tip

To support the most recent Neuroglancer states which load resources using, e.g. gs://my-bucket/data.ome.zarr|zarr:, you will need the development version of Neuroglancer, that can be installed using:

pip install git+https://github.com/google/neuroglancer.git

You will require a build environment, including node and Python.h. To install node on your system, use nvm. If you use uv (uv pip ...), you should pick and install a uv-managed version of Python, as explained here.

  • Start an interactive Python session with (blank state):
python -i ngregister.py
  • Or start with a previous state from either a JSON file or a Neuroglancer URL:
python -i ngregister.py --url "https://neuroglancer-demo.appspot.com/#!..."
  • Either save manually the JSON file from the web browser or get the Neuroglancer URL once you quit the interactive Python session.

Other related projects

As of neuroscales/ngtools#42, these features have been implemented in neuroscales/ngtools, which handles more complex use cases. HiPCTProject/ngregister can still be used as a standalone.

Warning

Keybindings are not yet uniformized between the two tools.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages