|
| 1 | +""" |
| 2 | + ** EpiCure - Inspect panel interface ** |
| 3 | +
|
| 4 | + Handle supects and events detection layer. |
| 5 | + Inspection functions propose to look for user selected features to detect potential errors in the segmentration from inspecting the tracks. |
| 6 | +
|
| 7 | + Extrusion events are detected as disappearance of a track & a cell size small enough. |
| 8 | + Divisions events can be detected by the tracking algorithm directly and saved in the track graph, or they can be detected by the inspection as the disappearance of one track at the same time that two new tracks appear in the same area. |
| 9 | +
|
| 10 | + Inpsection could also be performed on a static image by looking at outlier values of a selected feature. |
| 11 | +""" |
| 12 | + |
| 13 | + |
1 | 14 | import numpy as np |
2 | 15 | from skimage import filters |
3 | 16 | from skimage.measure import regionprops |
|
9 | 22 | import time |
10 | 23 | from joblib import Parallel, delayed |
11 | 24 |
|
12 | | -""" |
13 | | - EpiCure - Inspection interface |
14 | | - Handle supects, events detection layer |
15 | | -""" |
16 | | - |
17 | 25 | class Inspecting(QWidget): |
18 | 26 |
|
19 | 27 | def __init__(self, napari_viewer, epic): |
| 28 | + """ |
| 29 | + Generate the graphical interface for the inspection panel, and initialize the events layer. |
| 30 | + """ |
20 | 31 | super().__init__() |
21 | 32 | self.viewer = napari_viewer |
22 | 33 | self.epicure = epic |
@@ -76,7 +87,7 @@ def __init__(self, napari_viewer, epic): |
76 | 87 | self.key_binding() |
77 | 88 |
|
78 | 89 | def key_binding(self): |
79 | | - """ active key bindings for events options """ |
| 90 | + """ active key bindings (keyboard and mouse shortcuts) for events options """ |
80 | 91 | sevents = self.epicure.shortcuts["Events"] |
81 | 92 | self.epicure.overtext["events"] = "---- Events editing ---- \n" |
82 | 93 | self.epicure.overtext["events"] += ut.print_shortcuts( sevents ) |
@@ -417,6 +428,7 @@ def set_colors_from_properties(self, feature): |
417 | 428 | self.events.face_color = feature |
418 | 429 |
|
419 | 430 | def update_display(self): |
| 431 | + """ Update the display of the events layer """ |
420 | 432 | self.events.refresh() |
421 | 433 | self.color_events() |
422 | 434 |
|
|
0 commit comments