Plugin for easy manual annotation/tracking of 3D or 2D + t dataset by following the cursor.
Project description
napari-cursor-tracker
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:
-
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).
-
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.
-
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:
-
Select the Active Layer: Choose the points layer where you want to save the tracking results as the "Active layer."
-
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.
-
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:
-
Create Individual Layers: Create a separate points layer for each point you want to track.
-
Select Active Layer: Use the "Active layer" dropdown menu to select the specific points layer you want to work with.
-
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file napari-cursor-tracker-0.0.1.tar.gz
.
File metadata
- Download URL: napari-cursor-tracker-0.0.1.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7971dc6f7fc688419774bcafec11538ea98c188daeda9b5115a411493a35701 |
|
MD5 | 33ed09b33379ec94315768dfc2315d5f |
|
BLAKE2b-256 | e90712fd95147d87f2741464d598c527c3eb1507b46474535af52b330397bb16 |
File details
Details for the file napari_cursor_tracker-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: napari_cursor_tracker-0.0.1-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e662c3dc6f3e91b234dbb0b728e2613738e87cd11245f2025ed87e67062ca820 |
|
MD5 | 263a1b22aa21aa906cf3c545232e80b5 |
|
BLAKE2b-256 | 44466d7bb28f202f0a433025fce5e3c6288af5e1c15ea076e62da6a67aade4b7 |