fsleyes.plugins.tools.addroihistogram
This module provides the AddROIHistogramAction class, an
action used by the HistogramPanel.
- class fsleyes.plugins.tools.addroihistogram.AddROIHistogramAction(overlayList, displayCtx, plotPanel)[source]
Bases:
fsleyes.actions.base.ActionThe
AddROIHistogramActionclass is used by theHistogramPanel.It performs a very similar task to the
AddMaskDataSeriesAction- the user selects a binary mask, the data within the base image is extracted for that mask, and the histogram of that data is added to the plot.- static supportedViews()[source]
The
AddROIHistogramActionis restricted for use with theHistogramPanel.
- __init__(overlayList, displayCtx, plotPanel)[source]
Create an
AddROIHistogramAction.- Parameters
overlayList – The
OverlayList.displayCtx – The
DisplayContext.plotPanel – The
HistogramPanel.
- __overlayListChanged(*a)
Called when the
OverlayListor theDisplayContext.selectedOverlaychanges. Updates a list of valid mask images for the currently selected overlay.
- __addROIHistogram()
Prompts the user to select an ROI mask, calculates the histogram of that mask on the currently selected overlay, and adds the result to the
HistogramPanel.
- __annotations__ = {}
- __module__ = 'fsleyes.plugins.tools.addroihistogram'