RPEBasedRegistration: Module to register the volume in slow scan direction

PRLEC Framework for OCT Processing and Visualization

OCT_GUI.Algorithms.SlowScanRegistration.RPEBasedRegistration.fillMissingColumns(volume)[source]

This method fills up empty columns by its nearest neighbors. If columns are zero, RANSAC may fail on several slices. Furthermore, weights are not defined.

Parameters:
volume: list of ndarrays

Input oct volume_rgb

OCT_GUI.Algorithms.SlowScanRegistration.RPEBasedRegistration.ransac_fit(x, y, degree_in)[source]

Ransac fitting helper

Parameters:
x: ndarray

data points x

y: ndarray

data points y

degree_in: scalar

degree of ransac

OCT_GUI.Algorithms.SlowScanRegistration.RPEBasedRegistration.runSlowScanRegistration(volume, flattening_polynomial)[source]

Flattening an OCT volume in slow-scan direction.

Each B-scan is Gaussian smoothed and the index of the maximum of each A-scan stored. The resulting pints are ransac-filtered and fitted by a polynomial of 2nd order. Finally the B-scan center index is extracted the entire B-scan shifted, such that the center A-scan is located in the axial center.