Input: Image I, Brain-Extracted Atlas A, Atlas Mask AM
|
Output: Brain-Extracted Image IB and mask IM
|
1 |
I1,
; |
2 |
for k ← 1 to 6 do
|
3 |
if k ≥ 2 then
|
4 |
if
k ≤ 3
then
|
5 |
find
, s.t.,
and
is affine; |
6 |
else if
k
== 4
then
|
7 |
find
, s.t.,
and
is B-spline; |
8 |
else
|
9 |
find
, s.t.,
and
is B-spline; |
10 |
end
|
11 |
; |
12 |
Decompose Ik, s.t., Ik = Lk + Sk + Tk;
|
13 |
if
k ≤
3
then
|
14 |
Rk = Lk + Sk;
|
15 |
end
|
16 |
end |
17 |
IB,
|