Skip to content

Commit

Permalink
minor bug in PICCS
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooryamn committed Jan 15, 2025
1 parent f566283 commit 872134c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MATLAB/Algorithms/PICCS.m
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
% weigth_backprj=bsxfun(@times,1./V(:,:,jj),backprj); % V * At * W^-1 * (b-Ax)
% f=f+beta*weigth_backprj; % x= x + lambda * V * At * W^-1 * (b-Ax)
% Enforce positivity
f=f+beta* bsxfun(@times,1./V(:,:,index_angles(:,jj)),Atb(W(:,:,index_angles(:,jj)).*(proj(:,:,index_angles(:,jj))-Ax(f,geo,angles_reorder(:,jj),'gpuids',gpuids)),geo,angles_reorder(:,jj),'gpuids',gpuids));
f= f+beta* bsxfun(@times,1./V(:,:,jj),Atb(W(:,:,index_angles(:,jj)).*(proj(:,:,index_angles(:,jj))-Ax(f,geo,angles_reorder(:,jj),'gpuids',gpuids)),geo,angles_reorder(:,jj),'gpuids',gpuids));
% non-negativity constrain
if nonneg
f=max(f,0);
Expand Down Expand Up @@ -199,7 +199,7 @@
end
if (iter==1 && verbose==1)
expected_time=toc*maxiter;
disp('ADS-POCS');
disp('PICCS');
disp(['Expected duration : ',secs2hms(expected_time)]);
disp(['Exected finish time: ',datestr(datetime('now')+seconds(expected_time))]);
disp('');
Expand Down

0 comments on commit 872134c

Please sign in to comment.