mirror of
https://github.com/c-sooyoung/fold_slice.git
synced 2026-09-17 21:49:08 +09:00
initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
% output = apply_reliability_region(input, weight)
|
||||
% Apply weighting functions to a stack of projections
|
||||
% Inputs:
|
||||
% **input - real or complex image stack
|
||||
% **weight - weights for each projection
|
||||
%
|
||||
% *returns*
|
||||
% ++output - projections multiplied by their weights
|
||||
% Written by YJ
|
||||
|
||||
function output = apply_reliability_region(input, weight)
|
||||
output = single(zeros(size(input)));
|
||||
for i=1:size(input,3)
|
||||
output(:,:,i) = gather(input(:,:,i)) .* gather(weight(:,:,i));
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user