Require: Input data matrix , matrix of binary masks , number of background components
|
1: |
|
Find the pixels not covered by any component. |
2: |
|
Run NMF on these pixels just to get temporal backgrounds
|
3: |
|
Obtain spatial background . |
4: |
|
Initialize temporal traces. |
5: |
|
Initialize spatial footprints constrained within the masks. |
6: |
repeat |
Optionally keep updating using HALS |
7: |
|
|
8: |
|
|
9: |
|
|
10: |
until Convergence |
|
11: |
return
|
|