Files
fold_slice/tomo/+tomo/apply_reliability_region.m
T
2026-08-07 15:56:42 +09:00

17 lines
532 B
Matlab

% 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