Skip to content

Commit

Permalink
FIX: suppresses some warning when image and label affine almost match
Browse files Browse the repository at this point in the history
  • Loading branch information
brudfors committed Jul 4, 2022
1 parent 2d5665a commit d6f9689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spm_mb_init.m
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
if ~all(dmc==dm)
error('Incompatible image dimensions for images of subject %d in population %d (%dx%dx%d ~= %dx%dx%d)', np, p, dmc, dm);
end
if ~all(lab.f.mat(:)==f(1).mat(:))
if ~all(ismembertol(lab.f.mat(:),f(1).mat(:),1e-6))
warning('Incompatible s-form matrices for subject %d in population %d', np, p);
end
%if max(cellfun(@max,lab.cm_map)) > K+1 || min(cellfun(@min,lab.cm_map)) < 1
Expand Down

0 comments on commit d6f9689

Please sign in to comment.