Skip to content

Commit

Permalink
fixed minor bug when updating temporal background
Browse files Browse the repository at this point in the history
  • Loading branch information
epnev committed Jan 3, 2016
1 parent e09e041 commit 9724269
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update_temporal_components_parallel.m
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
end
p = P.p;
for iter = 1:ITER
[O,lo] = update_order(A);
[O,lo] = update_order(A(:,1:K));
for jo = 1:length(O)
Ytemp = YrA(:,O{jo}(:)) + (diag(nA(O{jo}))*Cin(O{jo},:))';
Ctemp = zeros(length(O{jo}),T);
Expand Down Expand Up @@ -222,4 +222,4 @@
f = C(K+1:end,:);
C = C(1:K,:);
Y_res(unsaturatedPix,:) = Y_res;
Y_res(saturatedPix,:) = Ysat - Asat*C - bsat*f;
Y_res(saturatedPix,:) = Ysat - Asat*C - bsat*f;

0 comments on commit 9724269

Please sign in to comment.