Intensity Plotter
A plugin for plotting intensity profiles with control features in napari.
napari-intensity-plotter is a plugin for napari that provides tools to measure and plot intensity profiles in 2D time-series images.
Screenshot: Intensity profile of a region of interest in a 2D time-series image.
Features¶
- Intensity Plot Widget: Allows you to select a region of interest in a 2D time-series image and plot the intensity profile over time.
- Intensity Plot Control Widget: Lets you fine-tune plot parameters and save the results as CSV or PNG files.
Installation¶
You can install napari-intensity-plotter
via pip:
pip install napari-intensity-plotter
Alternatively, you can install it directly from the napari plugin interface.
Usage¶
-
Load a 2D Time-Series Image
Load a 2D time-series image (e.g., fluorescence microscopy data) in napari. -
Activate the Widgets
Open theIntensity Plot Widget
andIntensity Plot Control Widget
from thePlugins
menu in napari. -
Intensity Plot Widget
- Move your mouse over the image, or click on a specific location to plot the intensity profile of the selected region across slices (e.g., time).
- The region of interest (ROI) size can be adjusted using the square size setting in the control widget.
-
Intensity Plot Control Widget
- Configure the square size for the ROI (ensures that the region size remains odd).
- Set the directory to save plots and intensity data.
- Save the intensity profile as a
.csv
or.png
file by clicking the corresponding buttons or using keyboard shortcuts (Ctrl+S
).
-
Additional Controls
- Hide all layers using the
Hide All Layers
button orCtrl+D
. - Use the rectangle to visualize the selected ROI.
- Hide all layers using the
Example Workflow¶
Step 1: Load a 2D time-series image (e.g., tif
or nd2
) into napari. Ensure the layer is visible.
Step 2: Open the Intensity Plot Widget
to visualize intensity changes over time or slices for a specific ROI.
Step 3: Use the Intensity Plot Control Widget
to:
- Adjust the square size for the ROI.
- Specify a directory to save intensity data.
- Enable saving in CSV or PNG formats.
Step 4: Save the plotted intensity data by clicking Save to CSV/PNG
or pressing Ctrl+S
.
Step 5: Hide all layers if necessary using Hide All Layers
or Ctrl+D
.
Contributing¶
Contributions are welcome! If you encounter issues or have ideas for new features, please submit them via the GitHub Issues.
Acknowledgements¶
This plugin was developed using the napari plugin cookiecutter template, which greatly streamlined the creation of this tool. See the cookiecutter-napari-plugin for more details.
Special thanks to the napari community for their continuous support and resources.
License¶
This project is licensed under the BSD 3-Clause License. See the LICENSE file for details.
Supported data:
- Information not submitted
Plugin type:
GitHub activity:
- Stars: 0
- Forks: 0
- Issues + PRs: 0