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) |