Skip to content

Commit

Permalink
Merge pull request #5 from WTCN-computational-anatomy-group/fix-affine
Browse files Browse the repository at this point in the history
Mirror main spm repo changes
  • Loading branch information
brudfors authored May 26, 2023
2 parents 8dab9c6 + b345fb7 commit 6cbbde5
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 6cbbde5

Please sign in to comment.