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
HMDrusen()[source]

Drusen Map (RPEDC) selected

blendSlices(event=None)[source]

Updating Blender

Parameters:
event: event

not used but necessary

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

enableDataButtons()[source]

Enable Buttons after loading a volume

exploremode()[source]

Starting Volume Explorer

getBottomXMotion(*args)[source]

Scrollbars horizontal method

getBottomYMotion(*args)[source]

Scrollbars vertical method

getTopXMotion(*args)[source]

Scrollbars horizontal method

getTopYMotion(*args)[source]

Scrollbars vertical method

heatmap_min = None

Insert new i in parameters.txt

inpaintOriginalSegmentation()[source]

Inpaint segmentation - Thickness is 3

inpaintSegmentationFiltered()[source]

Inpaint filtered segmentation - Thickness is 3 When thresholding the heatmap, the results can be backpropagated. This reduces the sensitivity of the map.

keyPressedDown(event)[source]

Zooming out of planes when key down pressed

keyPressedUp(event)[source]

Zooming into planes when key up pressed

loadCompleteSegmentation(path=None)[source]

Load segmentation volume calling ImportHandler.

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

markGA()[source]

Delineate GA selected - Setting up RPE slab

metricCalculation()[source]

Calculate Drusen metrics and show in new window

minProjectionILMRPE()[source]

Projection ILM to RPE selected

resetSegmentation()[source]

Reset segmentation

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.

saveHeatmap()[source]

Saving heatmap A window will be opened to select the path

saveInpainted()[source]

Saving inpainted volume as tif A window will be opened to select the path

saveLineSegmentation()[source]

Saving line segmentation as tif A window will be opened to select the path

showVessels()[source]

Vesselness selected

start_correction_mode()[source]

Start correction method

start_explore_mode(master)[source]

Start Explore Volume Mode

Parameters:
master: TK object

TK object for setting up frame

subBMSlab(ga_proj_mode=None, ga_thickness=None)[source]

Sub-BM Slab selected

subRPESlab(ga_proj_mode=None, ga_thickness=None)[source]

Sub-RPE Slab selected

undoSegmentation()[source]

Reset inpainted layers - back to volume only

updateBlender(event)[source]

Updating Blender

Parameters:
event: event

not used but necessary

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

updateHeatSlice_Helper()[source]

Updating Heatmap image helper

updateSegmentation()[source]

Updated Segmentation Different things happen for different heatmaps

updateVolumeSliceXY(event)[source]

Updating XY plane image

Parameters:
event: event

not used but necessary

updateVolumeSliceXY_Helper()[source]

Updating XY plane image helper

updateVolumeXZ()[source]

Updating XZ Slice by swapping volume

updateVolumeXZSlice(event)[source]

Updating XZ Slice

updateVolumeXZSlice_Helper()[source]

Updating XZ Slice helper

updateVolumeYZ()[source]

Updating YZ Slice by swapping volume

updateVolumeYZSlice(event)[source]

Updating YZ Slice

Parameters:
event: event

not used but necessary

updateVolumeYZSlice_Helper()[source]

Updating YZ Slice by swapping volume