Select Label¶
Select Label Module
This file contains a collection of functions which allow the user to select different labels after the segmentation operation.
- Usage:
To use this module, import it and instantiate is as you wish:
from Paint4Brains.GUI.SelectLabel import SelectLabel
dropbox = SelectLabel(properties)
-
class
Paint4Brains.GUI.SelectLabel.SelectLabel(window, parent=None)¶ SelectLabel class
Drop-down box used to select which region of the brain you want to edit and visualize. Passing the ImageViewer class allows the drop-down box to refresh the displayed image.
- Args:
- window (class): ImageViewer class parent (class): Base or parent class
-
current_index¶ Current index
Function determining the current index.
- Returns:
- int: Incremented current index
-
update_box()¶ Dropdown box update
Updates the value in the dropdown box if the selected brain label is changed by other means
-
update_brain()¶ Label update
Updates the selected label if the value in the dropdown box is changed