Skip to main content
. Author manuscript; available in PMC: 2010 Aug 1.
Published in final edited form as: IEEE Trans Image Process. 2009 Apr 17;18(8):1817–1829. doi: 10.1109/TIP.2009.2021081
Algorithm 2 [Active mask basic block]
Input: Image f, initial number of masks M, initial collection
of masks ψ0, scale of the region-based lowpass filter a, scale of
the voting-based lowpass filter b, skewing factor α, harshness
of the threshold β, average border intensity γ.
Output: Collection of masks ψ and final iteration number i.

ActiveMasks(f, M, ψ0,a, b, α, β, γ)
  Compute the region-based lowpass filter h (3)
  Compute the region-based distributing functions Rm (2)
  Compute the voting-based lowpass filter g (5)
  Active mask voting as in Algorithm 1
  (ψ, i) = AMVoting(M, 0, ψ0, g, Rm)
  return (ψ, i)