Algorithm 3 [Multiresolution multiscale active masks] |
Input: Image f, initial number of masks M, initial resolution level K, 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. |
MRMSActiveMasks(f, M, K, a, b, α, β, γ) |
Initialization |
i = 0, k = K, j = 1, , I = f |
Multiresolution block |
while k ≥ 0 do |
Compute coarse version of the image |
f(n) = Hk I (n) |
Multiscale block |
while j ≤ Jk do |
Basic block |
Change of scale parameter at resolution k |
j = j + 1, i = i + p |
end while |
Lift mask ψ to the next higher resolution k − 1 |
k = k − 1 |
end while |
return (ψ, i) |