|
|
Algorithm 1 Incremental discriminative structured dictionary learning (IDSDL). |
|
| Input: |
|
Nt0 −1i,
,
, i = 1, 2, …, N, Tt0 −1, λ1, λ2. |
| 1: |
,
,
,
|
| 2: |
for
t = t0→T
do
|
| 3: |
Obtain
,
by
based on Equation (4). |
| 4: |
for
i = 1 → N
do
|
| 5: |
Sparse representation of positive sample patches
to obtain
by Equation (2) based on Tt−1. |
| 6: |
Sparse representation of negative sample patches
to obtain
by Equation (2) based on
. |
| 7: |
Update
,
|
| 8: |
Update
,
. |
| 9: |
for
j = 1 → M
do
|
| 10: |
Update
by Equations (7) and (8) with
. |
| 11: |
Update
by Equations (7) and (8) with
. |
| 12: |
end for
|
| 13: |
Update the learned dictionary part,
, based on Equation (6). |
| 14: |
Update the learned dictionary part, Dt, based on Equation (4). |
| 15: |
end for
|
| 16: |
Update the template set, Tt, based on Equation (5). |
| 17: |
end for |
| Output: |
|
Updated Tt, Dt. |
|