ImportHandler: Module to import files

PRLEC Framework for OCT Processing and Visualization

OCT_GUI.FileHandler.ImportHandler.getOriginalRGBVolume(volume)[source]

Get original rgb volume

Parameters:
volume : ndarray

volume

Returns:
vol_rgb : ndarray

original rgb volume

OCT_GUI.FileHandler.ImportHandler.loadCompleteSegmentation(directory, shifts, path=None)[source]

Load Segmentation

Parameters:
directory : string

current path

shifts : list of ndarrays

the A-scan shift values for flattening: format [B-scan number][Column,y-coordinate]

Returns:
segmentation : ndarray

the segmentation

heatmap: ndarray

calculated rpe/bruchs heatmap

OCT_GUI.FileHandler.ImportHandler.loadGroundtruthVolume(directory, shiftedValues)[source]

Load volume from ‘.tif’ stack

Parameters:
directory : string

current path

shiftedValues : list of ndarrays

the A-scan shift values for flattening: format [B-scan number][Column,y-coordinate]

Returns:
vol : string

the groundtruth volume

OCT_GUI.FileHandler.ImportHandler.loadVolume(directory, path=None, OCTA=False, merged=True, flattening_polynomial=4)[source]

Load volume from ‘.tif’ stack

Parameters:
directory : string

current path

path : string, optional

given path for skipping manual selectionc

OCTA : bool, optional

True if loading OCTA scan

merged: bool

volume merged

flattening_polynomial: scalar

degree for flattening

Returns:
initialdir : string

new current path

shifts : list of ndarrays

the A-scan shift values for flattening: format [B-scan number][Column,y-coordinate]

volume_original : ndarray

unflattened volume

vol_rgb: ndarray

volume in rgb to visualize