Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ludovica Griffanti
C-MORE brain MRI
Commits
5f428d4c
Commit
5f428d4c
authored
May 08, 2021
by
Ludovica Griffanti
Browse files
Upload weightedcombinaion
parent
592a40f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
QSM_pipeline/weightedCombination.m
0 → 100644
View file @
5f428d4c
function
combined
=
weightedCombination
(
image
,
sensitivity
)
% This script was adapted from ASPIRE (https://github.com/korbinian90/ASPIRE)
% Please cite: Eckstein, K., et al. (2018), Computationally Efficient Combination of Multi-channel Phase Data From Multi-echo Acquisitions (ASPIRE).
% Magn. Reson. Med, 79: 2996-3006. https://doi.org/10.1002/mrm.26963
image
=
double
(
image
);
sensitivity
=
double
(
sensitivity
);
dimension
=
size
(
image
);
combined
=
zeros
(
dimension
(
1
:(
end
-
1
)),
'double'
);
for
iChannel
=
1
:
dimension
(
4
)
combined
=
combined
+
image
(:,
:,
:,
iChannel
)
.*
sensitivity
(:,
:,
:,
iChannel
);
end
combined
=
combined
.
/
sqrt
(
abs
(
combined
));
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment