Skip to content

Commit

Permalink
Mirror main spm repo changes
Browse files Browse the repository at this point in the history
  • Loading branch information
brudfors committed May 26, 2023
1 parent 8dab9c6 commit b345fb7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions spm_mb_shape.m
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,11 @@
mq = sum(cat(2,dat(:).q),2)/numel(dat);

if isfield(sett.mu.create,'issym') && sett.mu.create.issym>0
% Temporary fix so that affine transforms are not mean
% Parameters that change x-coordinates are not mean
% corrected when dealing with a symmetric template.
mq = mq*0;
tmp = sum(B(1,:,:).^2,2);
tmp = squeeze(tmp~=0);
mq(tmp) = 0;
end

for n=1:numel(dat)
Expand Down Expand Up @@ -729,9 +731,11 @@
mq = sum(cat(2,dat(:).q),2)/numel(dat);

if isfield(sett.mu.create,'issym') && sett.mu.create.issym>0
% Temporary fix so that affine transforms are not mean
% Parameters that change x-coordinates are not mean
% corrected when dealing with a symmetric template.
mq = mq*0;
tmp = sum(B(1,:,:).^2,2);
tmp = squeeze(tmp~=0);
mq(tmp) = 0;
end

for n=1:numel(dat)
Expand Down

0 comments on commit b345fb7

Please sign in to comment.