Skip to main content
. Author manuscript; available in PMC: 2009 Jan 26.
Published in final edited form as: Conf Proc IEEE Eng Med Biol Soc. 2008;1:3134–3137. doi: 10.1109/IEMBS.2008.4649868

Algorithm 1.

Vessel Segmentation

Require: Enhanced epifluorescence-based vessel image I
Ensure: Background-Vessel mask MaskVessel (1:Vessel, 0:BG)
 1: ℋ(I)←Hessian(I)
 2: g(∇I) = exp(−|∇Gσ(x, y) * I(x, y)|) // Edge stopping function
 3: FA(x, y) = c1 × (trace(ℋ(I(x, y))) + c2) // Differential geometric adaptive force
 4: Maskridge(x, y)←Initialize ridge mask
 5: Maskridge(trace(ℋ) < ε)←1 // Set ridge (vessel) pixels to 1
 6: Maskridge = Maskridgese // Dilate ridges
 7: ϕ = SignedDist( Maskridge) //Initialize ϕ using signed distance transform of Maskridge; Maskridge = = 0→ϕ > 0
 8: while stopping/convergence condition not met do
 9: Evolve ϕ using g(∇I) and spatially adaptive force FA.
10: end while
11: MaskVessel(x, y)←0; MaskVessel(ϕ < 0)←1 // 1: Vessel, 0:BG