Automated phase unwrapping in Doppler optical coherence tomography

Abstract. Phase wrapping is a crucial issue in Doppler optical coherence tomography (OCT) and restricts its automatic implementation for clinical applications that quantify total retinal blood flow. We propose an automated phase-unwrapping technique that takes advantage of the parabolic profile of blood flow velocity in vessels. Instead of inspecting the phase shift manually, the algorithm calculates the gradient magnitude of the phase shift on the cross-sectional image and automatically detects the presence of phase wrapping. The voxels affected by phase wrapping are corrected according to the determined flow direction adjacent to the vessel walls. We validated this technique in the rodent retina using a prototype visible-light OCT and in the human retina with a commercial infrared OCT system. We believe this signal processing method may well accelerate clinical applications of Doppler OCT in ophthalmology.

Abstract. Phase wrapping is a crucial issue in Doppler optical coherence tomography (OCT) and restricts its automatic implementation for clinical applications that quantify total retinal blood flow. We propose an automated phaseunwrapping technique that takes advantage of the parabolic profile of blood flow velocity in vessels. Instead of inspecting the phase shift manually, the algorithm calculates the gradient magnitude of the phase shift on the cross-sectional image and automatically detects the presence of phase wrapping. The voxels affected by phase wrapping are corrected according to the determined flow direction adjacent to the vessel walls. We validated this technique in the rodent retina using a prototype visiblelight OCT and in the human retina with a commercial infrared OCT system. We believe this signal processing method may well accelerate clinical applications of Doppler OCT in ophthalmology. ©  Doppler optical coherence tomography (OCT) can noninvasively image the flow velocity component along the light beam direction and reveal cross-sectional flow distribution in individual vessels. 1 It enables the calculation of absolute retinal blood flow by either dual-circular 2 or en face Doppler scanning protocols. 3 The dual-circular scan samples two concentric circles near the optic disc and transects all major vessels simultaneously to obtain blood flow. 2 The en face Doppler scan 3 consists of a volumetric scan over the optic disc region and integrates blood flow velocity across the en face plane. This avoids the necessity of vessel Doppler angle determination but requires many more sampling points (A-lines).
In Doppler OCT, blood flow velocity can be calculated from the phase shift between adjacent A-lines or B-scans. 1 To image the major retinal arteries or veins around the optic disc in rodents or humans, the Doppler signal is usually generated by adjacent A-lines, according to the currently available system speeds. Since the phase shift is mathematically restricted to ½−π; π, 4 phase wrapping frequently occurs and confounds the determination of blood flow velocity. Although reducing the time interval of adjacent A-lines or adjusting the Doppler angle closer to 90 deg could enlarge the maximum detectable flow speed ν m to avoid phase wrapping, these operations will bring additional problems, such as insufficient reflectance and difficult alignment. 2 Phase unwrapping is a technique that intentionally expands the phase range to beyond ½−π; π. Due to the severe noise level in Doppler OCT, this procedure was initially performed by manually inspecting each frame and isolating the region affected by phase wrapping. 5 Later, Wang et al. 6 proposed an automated method that takes advantage of the continuity of blood flow velocity along the A-line profile to correct the phase wrapping. However, correction failure on vessels and miscorrection on tissue still occasionally occur.
In this letter, we propose an automated technique based on the magnitude of the phase-shift gradient to correct phase wrapping. The algorithm works under the presumption that the blood flow velocity within a blood vessel has a parabolic profile, with the highest velocity at the center and lowest velocity near the walls. 6,7 Thus, the phase-wrapping region in cross-sectional Doppler OCT image tends to be limited to a closed area within the vessel. The magnitudes of phase-shift gradients at the edge of this region are extraordinarily large due to the reverse of phase direction, providing an indicator of the presence of phase wrapping, which may be useful for correcting this problem. The effectiveness of this algorithm is demonstrated here by dual-circular Doppler OCT in the rodent retina and en face Doppler OCT in human retina.
Rodent retinal images were acquired by a custom-built visible-light OCT system with a 50-kHz sampling rate, center wavelength at 565 nm, and axial resolution of 1.2 μm in tissue. 8 Brown Norway rats were anesthetized with 2.5% isoflurane and the pupil dilated with 0.5% tropicamide ophthalmic solution. All experimental procedures were approved by the Institutional Review Board/Ethics Committee as well as the Institutional Animal Care and Use Committee (IACUC) of the Oregon Health and Science University.
After locating the optic disc [ Fig. 1(a)], an ultradense dualcircle (inner radius r 1 ¼ 0.6 mm and outer radius r 2 ¼ 0.8 mm) scanning protocol was performed, consisting of 4096 A-lines [ Fig. 1(b)] around the optic disc for each circle with 30 repeated frames at each location. The scanning densities were 0.9 μm∕line for the inner circle and 1.2 μm∕line for the outer circle.
To reveal the structural images [ Fig. 1(b)], interferograms were successively processed by λ − k interpolation, DC removal, Hilbert transform, dispersion compensation, and fast Fourier transform. The initial Doppler phase shift was obtained by calculating the angle between adjacent A-lines (complex signal). After that, bulk phase motion between A-lines was removed by standard deviation methods 9 to obtain the phase shift relevant to in situ blood flow only [ Fig. 1(c)].
The horizontal position of each major vessel (θ direction) was identified by the absorption shadow artifact underneath [ Fig. 1 At the edge of the phase-wrapping region, the phase shift reverses from −π to π or π to −π, causing a gradient magnitude (∼2π) significantly larger than that suggested by the regular velocity profile. However, the median and Gaussian filters degrade the gradient magnitude. Therefore, the superthreshold was set to π∕2 to obtain the edge of the phase-wrapping region (bright contour in G mag in Fig. 2). Ideally, the edge contour should be a closed curve due to the parabolic flow velocity in vessels. However, breaks in the contour occur due to phase discontinuity. Morphological closing (an operation that will remove isolated below-threshold pixels within a region) was applied to acquire a closed phase-wrapping region (BW in Fig. 2).
The phase correction factor (2π or −2π) was determined by the phase shift outside the phase-wrapping region. This ring region was easily generated by dilating the phase-wrapping region BW and then subtracting the original BW from the dilated region. An averaged phase φ p was calculated over the annular region along the vessel wall as an indicator of flow direction. The unwrapped phase signal φ puw was then obtained by adding 2π if φ p was positive (V 2 in Fig. 2) or subtracting 2π if φ p was negative (V 1 in Fig. 2). The full phase unwrapping for each vessel at each frame takes <0.1 s to accomplish in the platform of MATLAB R2018b with Intel i7-7700 CPU processor E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 0 2 ; 3 2 6 ; 2 7 2 After that, the Doppler B-scan frames of each vessel were rigidly registered using the reflectance images by a 2-D cross-correlation method, 10 and the phase shifts were averaged over the registered B-scans to account for the cardiac cycle. The Doppler angle α of each vessel was calculated from the difference of the positions of vessel centers (determined by the center of mass in φ puw images) between the inner and outer circular scans. The parabolic profiles of the blood flow velocities (Fig. 2) were calculated according to ν ¼ f s λ 0 φ∕½4πn cosðαÞ, where the sampling rate f s is 50 kHz, the center wavelength λ 0 is 565 nm, and refractive index n is 1.4. Mean blood flow velocity ν was calculated by averaging the velocity distribution profiles on the vessel region (acquired by setting a 1-mm∕s threshold to the velocity distribution profiles), with vessel diameter H in B-scans obtained by the maximum axial span of the Fig. 1 (a) Mean projection en face structural image of a rat retina, acquired with the prototype vis-OCT system. Dual-circle scanning positions were marked with white dashed circles, with arrows indicating the starting points of scanning (θ ¼ 0). Vessels were numbered starting from θ ¼ 0 along the counterclockwise scanning direction. The field of view is 2.2 × 2.2 mm 2 . Scale bar ¼ 200 μm. (b) Averaged crosssectional structural images of the inner circular scan. The image covers 500 μm in the depth direction and 360 deg in the θ direction, covering all major retinal vessels. The shadow artifacts underneath superficial vessels can be used to identify the approximate vessel cross section (yellow dash box) for phase unwrapping. (c) A single-frame Doppler phase-shift image of the inner circular scan. Note that phase wrappings exist in some vessels ðV 1 ; V 2 Þ, as evidenced by the phase jumping (red → blue or blue → red) inside the vessel cross-sectional regions. Fig. 2 Phase unwrapping of a vein (V 1 ) and an artery (V 2 ) affected by phase wrapping as well as a vein (V 9 ) unaffected by phase wrapping. First column: phase shift φ 0 after median filtering shows that, in the presence of phase wrapping, the phase jumps from negative to positive (blue to red) inside the vein (V 1 ) and from positive to negative (red to blue) inside the artery (V 2 ). Second column: phase gradient magnitude G mag was extraordinarily large at the edge of phase wrapping, compared to the vessel periphery and the vessel (V 9 ) that did not have phase wrapping. Third column: binary image BW of the phase-wrapping regions. Note their presence in the vessels with phase wrapping and their absence in the vessel without phase wrapping. Fourth column: phase-unwrapped Doppler signal φ puw as determined by the proposed algorithm. The phase shift was corrected and shown within the range between −2π and 2π. Fifth column: parabolic flow velocity profile retrieved from unwrapped phase shift after registering and averaging the results from all repeated frames. Image size: 150 μm ðzÞ × 13 deg ðθÞ.
Journal of Biomedical Optics 010502-2 January 2019 • Vol. 24 (1) vessel area. After that, vessel cross-sectional area S was calculated from the vessel diameter H and the Doppler angle α as S ¼ π½H sinðαÞ∕2 2 under the presumption of a cylindrical shape for a vessel. The blood flow F was calculated as the product of mean flow velocities ν over the cross-sectional area S of each vessel as follows: E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 0 3 ; 6 3 ; 5 4 9 F ¼ v · S: The measurements for retinal vessels shown earlier are listed in Table 1. For the vessels affected by phase wrapping, the mean phase shifts were higher than that with smaller Doppler angles. The measured total retinal blood flow calculated from venous flow was 8.53 AE 0.87 μL∕ min (rats ¼ 6) with mean flow velocities ranging from 7 to 12 mm∕s. These results are consistent with previously reported values. 11 Human retinal images were acquired using a commercial spectral-domain OCT system (RTVue-XR Avanti; Optovue, Inc., Fremont, California) with a 70-kHz scanning rate, center wavelength at 840 nm, and an axial resolution of 5 μm. To achieve en face Doppler measurements, a dense volumetric scan consisting of 500 A-lines/B-scans and 78 B-scans was performed on a 2 × 2 mm 2 region around the optic disc [ Fig. 3(a)], followed by 5 repeated volume determinations to compensate for the cardiac cycle. The whole acquisition time is about 3 s.
The blood absorption attenuation in infrared is weaker than that in visible light; however, the much larger diameter in depth in human retinal vessels causes a dark shadow similar to that in vis-OCT [ Fig. 3(b)]. Since vessels come almost vertically from the optic disc, the Doppler angles are far away from 90 deg for arteries and veins thus phase wrapping is easily seen in phaseshift images [ Fig. 3(c)].
For the en face Doppler OCT, the phase gradient magnitude map G mag can be calculated from the whole B-scan. Two vessels appear bright in Fig. 3(d), indicating that they are affected by phase wrapping within the regions delimited by BW [ Fig. 3(e)]. The phase was unwrapped successively inside the phase-wrapping regions using the algorithm described earlier [ Fig. 3(f)].
The differentiation between arteries and veins was assisted by three-dimensional visualization in this scanning protocol [ Fig. 3(g)]. Since the Doppler angle of vessels varies dramatically within the optic disc region, the phase shift for one vessel can be changed between negative (blue) and positive (red), with intermediate breaks where phase shift is near zero at a Doppler angle close to 90 deg.
Usually, the total retina blood flow in humans is calculated in veins. This is because, as opposed to arteries, veins (1) have steady flow during systole and diastole and (2) are straight and easy to find a satisfied depth plane. As shown in Fig. 3(g), the superior ophthalmic vein trunk (vein 1), nasal-(vein 2), and temporal-(vein 3) inferior ophthalmic vein branches, as well as two ciliary veins (veins 4 and 5) were identified by their morphology and flow directions. By contrast, the arteries broke into multiple slices and were hard to delineate for flow measurement.
When the velocity is too high, multiple-fold phase wrappings may occur, which can produce multiple nested bright contours in the phase gradient magnitude map. The phase then should be Table 1 Mean phase shift φ, Doppler angle α, mean velocity ν, and blood flow f for the major vessels in the rat retina shown in Fig. 1  unwrapped by correcting the phase in the outer contour first and then the phase in the inner contour. However, in these cases, fringe washout can be severe and make it difficult to obtain the phase shift from adjacent A-lines. So in practice, multiple-fold phase wrapping of multiple vessels should still be avoided.
Limitations still exist in this algorithm. First, the proposed phase-unwrapping algorithm is strictly specialized for determining blood flow, and thus it is not suitable as a generic algorithm that can be easily adapted to other applications. However, the idea of introducing image processing techniques to Doppler phase unwrapping may be generally beneficial. Second, if the flow profile is nonparabolic (for instance because of a sharp bend in the vessel), errors in the detection of the wrapping boundary might occur. For example, the velocity profile in the middle vessel in Fig. 3(c) is irregular, causing an imperfectly closed phase-wrapping region. If the irregularity were more severe, the phase-unwrapping process would fail.
In summary, under the assumption that phase wrapping predominantly occurs in the vessel center, we used the phase gradient magnitude to indicate the presence of and correct for phase wrapping. The algorithm was verified using a dual-circle protocol with a visible-light prototype in the rat retina and an en face Doppler scanning protocol with an infrared commercial OCT system in the human retina.

Disclosures
Acner Camino and Yali Jia have a significant financial interest in Optovue Inc. These potential conflicts of interest have been reviewed and managed by the Oregon Health and Science University. Other authors declare that there are no conflicts of interest related to this letter.