fsleyes.actions.addroihistogram¶
This module provides the AddROIHistogramAction class, an
action used by the HistogramPanel.
-
class
fsleyes.actions.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.-
__init__(overlayList, displayCtx, plotPanel)[source]¶ Create an
AddROIHistogramAction.- Parameters
overlayList – The
OverlayList.displayCtx – The
DisplayContext.plotPanel – The
HistogramPanel.
-
_AddROIHistogramAction__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.
-
_AddROIHistogramAction__overlayListChanged(*a)¶ Called when the
OverlayListor theDisplayContext.selectedOverlaychanges. Updates a list of valid mask images for the currently selected overlay.
-
__module__= 'fsleyes.actions.addroihistogram'¶
-