Framework: Core class to load initial GUI¶
PRLEC Framework for OCT Processing and Visualization
-
class
OCT_GUI.GUI_Classes.Framework.
GUI
[source]¶ Basic GUI Class to load PRLEC Framework
Methods
HMDrusen
()Drusen Map (RPEDC) selected blendSlices
([event])Updating Blender correctionmode
()Starting Manual Refinement Mode Note: Volume will be flattened to BM for Correction disableDataButtons
()Disable Buttons to ensure that no multiple loading processes are triggered enableDataButtons
()Enable Buttons after loading a volume exploremode
()Starting Volume Explorer getBottomXMotion
(*args)Scrollbars horizontal method getBottomYMotion
(*args)Scrollbars vertical method getTopXMotion
(*args)Scrollbars horizontal method getTopYMotion
(*args)Scrollbars vertical method inpaintOriginalSegmentation
()Inpaint segmentation - Thickness is 3 inpaintSegmentationFiltered
()Inpaint filtered segmentation - Thickness is 3 When thresholding the heatmap, the results can be backpropagated. keyPressedDown
(event)Zooming out of planes when key down pressed keyPressedUp
(event)Zooming into planes when key up pressed loadCompleteSegmentation
([path])Load segmentation volume calling ImportHandler. loadVolume
([path, OCTA, merged])Load volume calling ImportHandler.loadVolume and setting up planes A window will be opened to select the path loadVolumeOCTA
()Load OCTA volume calling loadVolume A window will be opened to select the path loadVolumeUnmerged
()Load Raw OCT volume calling loadVolume with parameter merged = False. markGA
()Delineate GA selected - Setting up RPE slab metricCalculation
()Calculate Drusen metrics and show in new window minProjectionILMRPE
()Projection ILM to RPE selected resetSegmentation
()Reset segmentation runAutomaticSegmentation
()Run Automatic three-layer segmentation Algorithms can be inserted here - Replace “tls” by own Algorithm and store result in self.segmentation runRPERefinement
()Run RPE refinement Extended graph-cut neighborhood (7 neighbors) with limited search space (above BM-only) This ensures that no CC is segmented falsely as RPE and improves accuracy. saveHeatmap
()Saving heatmap A window will be opened to select the path saveInpainted
()Saving inpainted volume as tif A window will be opened to select the path saveLineSegmentation
()Saving line segmentation as tif A window will be opened to select the path showVessels
()Vesselness selected start_correction_mode
()Start correction method start_explore_mode
(master)Start Explore Volume Mode subBMSlab
([ga_proj_mode, ga_thickness])Sub-BM Slab selected subRPESlab
([ga_proj_mode, ga_thickness])Sub-RPE Slab selected undoSegmentation
()Reset inpainted layers - back to volume only updateBlender
(event)Updating Blender updateBlenderHelper
()Updating Blender Helper updateHeatSlice
(event)Updating Heatmap image updateHeatSlice_Helper
()Updating Heatmap image helper updateSegmentation
()Updated Segmentation Different things happen for different heatmaps updateVolumeSliceXY
(event)Updating XY plane image updateVolumeSliceXY_Helper
()Updating XY plane image helper updateVolumeXZ
()Updating XZ Slice by swapping volume updateVolumeXZSlice
(event)Updating XZ Slice updateVolumeXZSlice_Helper
()Updating XZ Slice helper updateVolumeYZ
()Updating YZ Slice by swapping volume updateVolumeYZSlice
(event)Updating YZ Slice updateVolumeYZSlice_Helper
()Updating YZ Slice by swapping volume -
correctionmode
()[source]¶ Starting Manual Refinement Mode Note: Volume will be flattened to BM for Correction
-
disableDataButtons
()[source]¶ Disable Buttons to ensure that no multiple loading processes are triggered
-
heatmap_min
= None¶ Insert new i in parameters.txt
-
inpaintSegmentationFiltered
()[source]¶ Inpaint filtered segmentation - Thickness is 3 When thresholding the heatmap, the results can be backpropagated. This reduces the sensitivity of the map.
-
loadVolume
(path=None, OCTA=False, merged=True)[source]¶ Load volume calling ImportHandler.loadVolume and setting up planes A window will be opened to select the path
-
loadVolumeOCTA
()[source]¶ Load OCTA volume calling loadVolume A window will be opened to select the path
-
loadVolumeUnmerged
()[source]¶ Load Raw OCT volume calling loadVolume with parameter merged = False. A window will be opened to select the path. The slow-scan direction will be registered to generate a smoother volume. For more information on the registration, please look at: Algorithms -> SlowScanRegistration -> runSlowScanRegistration
-
runAutomaticSegmentation
()[source]¶ Run Automatic three-layer segmentation Algorithms can be inserted here - Replace “tls” by own Algorithm and store result in self.segmentation
-
runRPERefinement
()[source]¶ Run RPE refinement Extended graph-cut neighborhood (7 neighbors) with limited search space (above BM-only) This ensures that no CC is segmented falsely as RPE and improves accuracy.
-
saveLineSegmentation
()[source]¶ Saving line segmentation as tif A window will be opened to select the path
-
start_explore_mode
(master)[source]¶ Start Explore Volume Mode
Parameters: - master: TK object
TK object for setting up frame
-
updateBlenderHelper
()[source]¶ Updating Blender Helper
Parameters: - event: event
not used but necessary
-
updateHeatSlice
(event)[source]¶ Updating Heatmap image
Parameters: - event: event
not used but necessary
-
updateVolumeSliceXY
(event)[source]¶ Updating XY plane image
Parameters: - event: event
not used but necessary
-