Skip to main content

napari-cursor-tracker

License BSD-3 PyPI Python Version tests codecov napari hub

Plugin for easy manual annotation/tracking of 3D or 2D + t dataset by following the cursor.


Installation

You can install napari-cursor-tracker via pip:

pip install napari-cursor-tracker

Getting Started with napari-cursor-tracker

Welcome to napari-cursor-tracker, a tool that simplifies the annotation of points in stacks of images by tracking your cursor's position. This documentation will guide you through the process of setting up and using this plugin effectively.

Points Layer Setup

Before you can start tracking, you need to create a points layer, which will store the positions of your cursor for each image in the stack. Here's how to set it up:

  1. Choose a Reference Image: Start by selecting a "Reference image" from your image stack. The number of frames or slices in the reference image determines how many points your new layer will have (one per frame/slice).

  2. Specify Point Name: Assign a name to the tracked point. This name will also serve as the name for the new layer. This step is particularly useful when tracking multiple points.

  3. Create the Layer: Click on "Add new layer" to create the points layer. Initially, all points will be located at the origin (0, 0, 0), but their positions will be updated as you start tracking.

Tracking Your Cursor

Now that you have set up the points layer, you can start tracking your cursor's position. Follow these steps:

  1. Select the Active Layer: Choose the points layer where you want to save the tracking results as the "Active layer."

  2. Initiate Tracking: Begin tracking your cursor's position by pressing the 't' key on your keyboard. To stop tracking, press 't' again. If the "Auto play when tracking is started" option is enabled, playback will start automatically when you press 't'. Alternatively, you can manually scroll through the images, and your cursor's position will be saved whenever the slice/frame index changes.

  3. Customize Playback: To facilitate or expedite tracking, you can adjust playback parameters as needed.

Tracking Multiple Points

If you need to track multiple points of interest, you can follow these steps:

  1. Create Individual Layers: Create a separate points layer for each point you want to track.

  2. Select Active Layer: Use the "Active layer" dropdown menu to select the specific points layer you want to work with.

  3. Start Tracking: Begin tracking the selected point following the previously mentioned tracking process.

Saving Your Results

The results from your tracking sessions can be saved as CSV files. Any points that were not tracked will be marked at the origin point (0, 0, 0) in the saved file.

With these guidelines, you should be well-prepared to efficiently annotate points in your image stacks using napari-cursor-tracker. Happy tracking!

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

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

Issues

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

Metadata

Release files for napari-cursor-tracker 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for napari-cursor-tracker 0.1.3
File Size Uploaded Provenance Actions
napari-cursor-tracker-0.1.3.tar.gz 14.6 kB Without provenance Details for napari-cursor-tracker-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for napari-cursor-tracker 0.1.3
File Interpreter ABI Platform Actions
napari_cursor_tracker-0.1.3-py3-none-any.whl Python 3 none any Details for napari_cursor_tracker-0.1.3-py3-none-any.whl

Total release size: 25.2 kB

Release files / napari-cursor-tracker-0.1.3.tar.gz

Download URL napari-cursor-tracker-0.1.3.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ddf189aef636fb2308d6d617872607d1c8a241abe3a4ebac6506eaa5a7e571cb
BLAKE2b-256 checksum
How to use checksums
dc446ec4722b2df5c95f58b09787201e1d9333972614d2fece2bfc995dfee97f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / napari_cursor_tracker-0.1.3-py3-none-any.whl

Download URL napari_cursor_tracker-0.1.3-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ec4e6e7ac129f2f038398d33f466e0a21d94edd6e5d234fff2bd8ef47821d7b
BLAKE2b-256 checksum
How to use checksums
ebd4342c625000927eef85275e448e9b816546227c74e03eb86e3890e861c43d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Security for napari-cursor-tracker 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page