InpaintSegmentation: Module to inpaint segmentations into OCT volumes

PRLEC Framework for OCT Processing and Visualization

OCT_GUI.Algorithms.AutomaticSegmentation.InpaintSegmentation.inpaint(_slice, shortest_path, y_offset, mode, dictParameters)[source]

Inpaint RPE into volume. Value 64/127 is used to mark the RPE/ILM.

Parameters:
slice: numpy array 2D

volume slice for getting shape

shortest_path: numpy array 1D

shortest path calculated by dijkstra’s algorithm

y_offset: scalar

current y_offset - denoting the skipped rows for runtime optimization

mode: string

‘RPE’ or ‘ILM’

dictParameters: dictionary

Parameters from parameters.txt (here: RPE_VALUE and BM_VALUE)